Weird MySql issue
#5

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.
Reply


Messages In This Thread
Weird MySql issue - by Blast3r - 30.07.2014, 07:47
Re: Weird MySql issue - by ReinasExpert - 30.07.2014, 08:56
Re: Weird MySql issue - by Blast3r - 30.07.2014, 09:02
Re: Weird MySql issue - by Konstantinos - 30.07.2014, 09:31
Re: Weird MySql issue - by Blast3r - 30.07.2014, 09:36
Re: Weird MySql issue - by Tosfera - 31.07.2014, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)