31.10.2015, 14:05
im keep getting spammed..
I type /123 and it spams..
PHP код:
if(strcmp(cmd, "/123", true) == 0)
{
CheckQuery1(playerid);
return 1;
}
PHP код:
public CheckQuery1(playerid)
{
new query[128];
mysql_format(mysql_db, query, sizeof(query), "SELECT * FROM players;");
mysql_tquery(mysql_db, query, "CheckQuery1");
new string[60];
//CheckQuery1();
//printf("Number of Accounts: %d.", cache_get_row_count());
format(string, sizeof(string), "Number of Accounts: %d.", cache_get_row_count());
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}