15.07.2010, 22:02
Hello there. I have a problem with sscanf(v2) and MYSQL. When I use something like that:
I don't know why my code does not work when I remove that P| or change it to p<>> (as I was told), that does not work at all, I can't get values when I remove the P. It also gives me an error;
But it works.
Code:
format(queryEX,512,"SELECT `Bank` FROM `players` WHERE `id`='%d'",PlayerInfo[playerid][pSQLID]); mysql_query(queryEX); mysql_store_result(); mysql_fetch_row_format(resultEX,"|"); mysql_free_result(); sscanf(resultEX,"p|d", PlayerInfo[playerid][pBank]); // 58d
Code:
sscanf warning: string without a length are deprecated, please add a destination size.