This time we are looking at chat (client.cpp)
[quote]// make sure the text has content
[blue]for[/blue] ( [blue]char[/blue] *pc = p; pc != NULL && *pc != 0; pc++ )
{
[blue]if[/blue] ( isprint( *pc ) && !isspace( *pc ) )
{
pc = NULL; [green]// we've found an alphanumeric character, so text is valid[/green]
[blue]break[/blue];
}
}
[blue]if[/blue] ( pc != NULL )
[blue]return[/blue]; [green]// no character found, so say nothing[/green][/quote]
It's not something complicated. I just need to declare the 'pc' outside of that for loop, because the bottom if statement occurs outside this loop. I tried putting "char pc;" in the front, but that appears to just silence chat. All this fun is due to the microsoft developing software not being backward compatible. (We already know microsoft didn't give a crap about backward compatibility when they made Windows 7)