10.09.2011, 12:26
You could either use the count function in SQL or do the following
I wouldn't really recommend calling that often if you had a big database.
pawn Code:
stock ReturnUserCount()
{
mysql_query("SELECT username FROM `usertable`");
mysql_store_result();
new users = mysql_num_rows();
mysql_free_result();
return users;
}