20.05.2020, 20:21
So I just put this to my register action :
But it shows "Player_Name [0] has successfully registered. [Total Accounts: 0]"
Why is it becomes 0? There are 3 rows in the table
PHP Code:
...
new registered[24], Cache:aresult = mysql_query(mysql, "SELECT COUNT(*) FROM `accounts`");
cache_get_field_content_int(0, registered, mysql);
cache_delete(aresult);
format(string, sizeof(string), "{FFFF00}%s [%d] has successfully registered. [Total Accounts: %d]", pName(playerid), playerid, registered);
SendClientMessageToAll(yellow, string);
...
Why is it becomes 0? There are 3 rows in the table