How can I collect?
#3

Easy, I assume you want to could all registered players on the server from the database?

This is what I did:

[pwano]
CMD:registeredplayers(playerid, params[]) {
mysql_query("SELECT * FROM `accounts`");
mysql_store_result();
new string[128];
format(string, sizeof(string), "[SERVER]: There are currently %d currently registered players.", mysql_num_rows());
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
mysql_free_result();
return 1;
}
[/pawno]

* means ALL

samething can be done for total houses, total businesses, total tickets, etc.
Reply


Messages In This Thread
How can I collect? - by Ahriman - 15.10.2014, 19:48
Re: How can I collect? - by austin070 - 15.10.2014, 23:18
Re: How can I collect? - by Mark_Weston - 16.10.2014, 04:36
Re: How can I collect? - by KingHual - 16.10.2014, 05:54
Re: How can I collect? - by Ahriman - 16.10.2014, 12:56
Re: How can I collect? - by Vince - 16.10.2014, 16:15

Forum Jump:


Users browsing this thread: 3 Guest(s)