MYSQL TOP `X` Players Dialog Example???
#5

pawn Код:
new playerData[30], playersName[MAX_PLAYER_NAME], playersScore;
mysql_query("SELECT `name`, `score` FROM `users` ORDER BY `score`");
mysql_store_result();
while(mysql_retrieve_row())
{
    mysql_fetch_row(playerData);
    sscanf(playerData, "p<|>s[24]d", playersName, playersScore);
    // do something with 'playersName' and 'playersScore'
}
mysql_free_result();
Reply


Messages In This Thread
MYSQL TOP `X` Players Dialog Example??? - by nGen.SoNNy - 10.05.2012, 13:11
Re: MYSQL TOP `X` Players Dialog Example??? - by nGen.SoNNy - 10.05.2012, 13:31
Re: MYSQL TOP `X` Players Dialog Example??? - by Vince - 10.05.2012, 13:34
Re: MYSQL TOP `X` Players Dialog Example??? - by nGen.SoNNy - 10.05.2012, 13:51
Re: MYSQL TOP `X` Players Dialog Example??? - by SuperViper - 10.05.2012, 14:25
Re: MYSQL TOP `X` Players Dialog Example??? - by nGen.SoNNy - 10.05.2012, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)