Comparing query result to player name
#4

Keep in mind, strcmp returns 0 if the strings match. So to check if the strings don't match you would do
pawn Код:
if(strcmp(save3, GetName(playerid)))
Also, I've been reading your posts lately and this part doesn't make any sense.
Quote:

The code above supposed to compare the player's name inside the database to his current name in-game. If it doesn't match, then the server will set his name to the one found inside the database.

How are you even selecting the row that corresponds to the player?
Reply


Messages In This Thread
Comparing query result to player name - by DBan - 10.11.2012, 05:04
Re: Comparing query result to player name - by DBan - 12.11.2012, 09:41
Re: Comparing query result to player name - by Ballu Miaa - 12.11.2012, 10:20
Re: Comparing query result to player name - by ReneG - 12.11.2012, 13:01
Re: Comparing query result to player name - by DBan - 12.11.2012, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)