04.01.2017, 08:24
Your code looks like it requires older version of BlueG's MySQL plugin but I wouldn't suggest you to use that. This code is as per the latest version:
pawn Код:
new
num_Players,
msg_String[128],
Cache:result
;
result = mysql_query(connectionHandle, "SELECT COUNT(*) FROM `players`");
//Better to count the number of rows than the number of results.
num_Players = cache_get_value_index_int(0, 0);
cache_delete(result);
//format stuffs.