Some problems with sscanf 2.0
#1

I have some problems with this function:

Code:
stock LoadPlayerInfo(playerid)
{
    new query[512];
    format(query, sizeof(query), "SELECT * FROM `useraccounts` WHERE `User`= %s", GetUserName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    if(mysql_fetch_row_format(query))
    {
		sscanf(query, "e<is[24]s[128]iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[24]iiiis[128]iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[32]iiiiiiiiiiiiiiiiiiiiiis[24]i>",PlayerInfo[playerid]);
    }
}
The query load right, but sscanf saves the ints and strings not in die PlayerInfo enum.

What I am doing wrong?
Reply


Messages In This Thread
Some problems with sscanf 2.0 - by perelo - 17.11.2010, 19:33
Re: Some problems with sscanf 2.0 - by perelo - 18.11.2010, 12:42
Re: Some problems with sscanf 2.0 - by perelo - 18.11.2010, 12:59
Re: Some problems with sscanf 2.0 - by perelo - 18.11.2010, 13:26
Re: Some problems with sscanf 2.0 - by perelo - 18.11.2010, 14:23
AW: Some problems with sscanf 2.0 - by perelo - 29.11.2010, 13:49
Re: Some problems with sscanf 2.0 - by MadeMan - 29.11.2010, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)