09.11.2013, 12:20
Hello, i have a little problem. I want to make a textdraw that shows total accounts, but i have a problem, it shows total accounts: 1, instead of correct number of accounts, i have tried to put string in other way, but i have the same problem.
Sorry for bad english
.
pawn Код:
new acctext[64];
new totalaccstring = mysql_query("SELECT COUNT(id) as total FROM players");
format(acctext, sizeof(acctext), "Total accounts: %d", totalaccstring);
TextDrawSetString(totalacc, acctext);
TextDrawShowForPlayer(playerid, totalacc); //totalacc is the textdraw.
Sorry for bad english
![Smiley](images/smilies/smile.png)