Sscanf not assinging values correctly
#8

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:

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();
and it dissapears 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<|>>", PInfo[playerid]);
    mysql_free_result();
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)
Reply


Messages In This Thread
Sscanf not assinging values correctly - by Jstylezzz - 03.02.2013, 10:51
Re: Sscanf not assinging values correctly - by Jstylezzz - 04.02.2013, 13:27
Re: Sscanf not assinging values correctly - by Jstylezzz - 04.02.2013, 14:42
Re: Sscanf not assinging values correctly - by spedico - 05.02.2013, 10:43
Re: Sscanf not assinging values correctly - by spedico - 05.02.2013, 11:00
Re: Sscanf not assinging values correctly - by spedico - 05.02.2013, 12:07
Re: Sscanf not assinging values correctly - by Jstylezzz - 05.02.2013, 12:14
Re: Sscanf not assinging values correctly - by Jstylezzz - 05.02.2013, 12:33
Re: Sscanf not assinging values correctly - by Jstylezzz - 05.02.2013, 12:41
Re: Sscanf not assinging values correctly - by Jstylezzz - 05.02.2013, 12:48
Re: Sscanf not assinging values correctly - by Jstylezzz - 06.02.2013, 12:34
Re: Sscanf not assinging values correctly - by Jstylezzz - 06.02.2013, 13:02

Forum Jump:


Users browsing this thread: 1 Guest(s)