Quote:
Originally Posted by OnTop2K9
pawn Код:
stock LoadPlayer(playerid) { format(string,sizeof(string),"SELECT * FROM players WHERE playerid=%d",pInfo[playerid][pSQLId]); query(string); mysql_store_result(); if(mysql_num_rows()>0) { new field[5][80], data[256]; if (mysql_fetch_row(data, "|")) { split(data, field, '|'); pInfo[playerid][pCash] = strval(field[3]); } GivePlayerMoney(playerid,pInfo[playerid][pCash]); } mysql_free_result(); return 1; }
|
The real code is working with sscanf, does it have the same speed with sscanf?