count server accounts mysql [+REP]
#4

Quote:
Originally Posted by Stev
Посмотреть сообщение
Use: mysql_num_rows();

Код:
new rows = mysql_nun_rows();
printf("Number of accounts: %d",rows);
pawn Код:
CMD:serverstats(playerid, params[])
{
    new total, query[128], Str[128];
    format(query, sizeof(query), "SELECT * FROM `Accounts`");
    mysql_query(mysql, query);
    mysql_store_result();
    total = mysql_num_rows();
    mysql_free_result();
    format(Str, sizeof(Str), "Total Accounts : %i", total);
    SendClientMessage(playerid, -1, Str);
 return 1;
}
it's show me 0 Accounts
Reply


Messages In This Thread
count server accounts mysql [+REP] - by simo0000 - 02.06.2015, 16:41
Re: count server accounts mysql [+REP] - by Stev - 02.06.2015, 16:44
Re: count server accounts mysql [+REP] - by Vince - 02.06.2015, 16:46
Re: count server accounts mysql [+REP] - by simo0000 - 02.06.2015, 16:47
Re: count server accounts mysql [+REP] - by Stev - 02.06.2015, 16:48
Re: count server accounts mysql [+REP] - by simo0000 - 02.06.2015, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)