Sscanf not assinging values correctly
#10

I'm afraid I don't get it :$
The end of the specifier, is that like "e<p<|>s[32]s[32] >", one char before the > ?

EDIT: Allright, I got rid of the overflow error, but every value I print for example the email variable, gives (null) as result..
I have no idea what the problem is here
This is my current code, like I said, I increased some sizes(i know, it's way too much, but I just did this for the debugging process).
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[128]s[128]dddddfffddds[128]dddddddddddddddddddddddddddddddddddddddddddds[10]s[20]ddd>", PInfo[playerid]);
    mysql_free_result();
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: 6 Guest(s)