05.02.2013, 12:33
Well, I stripped down my query like you said, and I keep getting the string buffer overflow error in my console, even though there is just one value loaded, and the query is 1000.
It only dissapears if I delete everything in my sscanf query.
The error persists here:
and it dissapears here:
Now, it seems like there is allways a string buffer overflow, even though everywhere the assigned size is the same :\ (like Username[32], which is the first value)
It only dissapears if I delete everything in my sscanf query.
The error persists here:
pawn Code:
new pName[24],Query[1000];
GetPlayerName(playerid,pName,24);
format(Query, sizeof(Query), "SELECT * FROM `Users` WHERE `Username` = '%s' ",pName);
mysql_query(Query);
mysql_store_result();
mysql_fetch_row_format(Query);
sscanf(Query, "e<p<|>s[32]>", PInfo[playerid]);
mysql_free_result();
pawn Code:
new pName[24],Query[1000];
GetPlayerName(playerid,pName,24);
format(Query, sizeof(Query), "SELECT * FROM `Users` WHERE `Username` = '%s' ",pName);
mysql_query(Query);
mysql_store_result();
mysql_fetch_row_format(Query);
sscanf(Query, "e<p<|>>", PInfo[playerid]);
mysql_free_result();