17.11.2010, 19:33
(
Last edited by perelo; 17/11/2010 at 07:44 PM.
)
I have some problems with this function:
The query load right, but sscanf saves the ints and strings not in die PlayerInfo enum.
What I am doing wrong?
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]); } }
What I am doing wrong?