11.01.2013, 01:43
(
Last edited by Fernado Samuel; 02/06/2013 at 09:46 PM.
)
Removed, thanks for the help!
Player data should load from the database once they login, so that which one is more faster?
pawn Code:
pawn Code:
|
format(query,sizeof(query),"SELECT * FROM `playerdata` WHERE `user`='%s'",pname);
new tick = tickcount();
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field_row(savingstring, "score"); SetPlayerScore(playerid, strval(savingstring));
mysql_fetch_field_row(savingstring, "money"); MoneyGiven[playerid] = strval(savingstring);
mysql_fetch_field_row(savingstring, "kills"); PlayerInfo[playerid][Kills] = strval(savingstring);
//etc....
}
printf("mysql_fetch_field_row method executed in %dms", tickcount() - tick);
new tick = tickcount();
sscanf(Query, "p<|>s[24]s[128]iiiiiiiiiiii",bla, bla, bla....);
printf("sscanf method executed in approx. %dms", tickcount() - tick)