10.11.2012, 05:04
I've been trying compare the query result to the player's name, however, the if statement keeps on getting called when it only supposed to be called if the player's name doesn't match the name fetched.
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.
I know I must be doing something wrong, but can't put my finger on it. Any suggestions?
Thanks.
-DBan
pawn Код:
// Inside a callback
mysql_fetch_field_row(save3, "actname");
// Further down
if(!strcmp(save3, GetName(playerid)))
{
//some code
}
I know I must be doing something wrong, but can't put my finger on it. Any suggestions?
Thanks.
-DBan