Posts: 632
Threads: 24
Joined: Aug 2011
Quote:
Originally Posted by Konstantinos
It might be a problem with the variable (not enough size etc). Debug it:
pawn Код:
GetPlayerIp(playerid, IP[playerid], 16); GetPlayerName(playerid, Name[playerid], 24); mysql_format(mysql, query, sizeof(query),"SELECT `Password`, `ID` FROM `users` WHERE `Username` = '%e' LIMIT 1", Name[playerid]); mysql_tquery(mysql, query, "OnAccountCheck", "i", playerid); printf("Name[playerid]: \"%s\" & query: \"%s\"", Name[playerid], query);
|
Debugged, it showed everything fully. As I said this happens quite randomly and once it does it just doesn't fetch the username fully and then gives random stats to every other online user.