SSCANF PROBLEM PLEASE HELP +REP
#7

Here is one
Quote:

CMD:serverstats(playerid, params[]) {
new
string[128],
iVehCount,
x;

while(x < MAX_VEHICLES)
if(GetVehicleModel(++x))
++iVehCount;

format(string,sizeof(string),"Server Statistics - PR:RP %s (recorded since the 19th of July, 2012).",SERVER_VERSION);
SendClientMessage(playerid, COLOR_NEWS, string);
format(string, sizeof(string), "* Objects: %d | Pickups: %d | Map icons: %d | 3D text labels: %d | Max houses: %d",CountDynamicObjects(),CountDynamicPickups(),Co untDynamicMapIcons(),CountDynamic3DTextLabels(), MAX_HOUSES);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Logins: %d | Connections: %d | Registrations: %d | Hackers autobanned: %d | Uptime: %d hours",TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, TotalUptime);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Players connected: %d | Peak player count: %d (%d/%d/%d) | Player vehicles loaded: %d | Total vehicles: %d",Iter_Count(Player),MaxPlayersConnected,MPDay,M PMonth,MPYear,PlayerCars, iVehCount);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}

Reply


Messages In This Thread
SSCANF PROBLEM PLEASE HELP +REP - by MikkaVanBuuren - 19.08.2012, 02:48
Re: SSCANF PROBLEM PLEASE HELP +REP - by Shetch - 19.08.2012, 02:50
Re: SSCANF PROBLEM PLEASE HELP +REP - by Alcatraz Gaming - 19.08.2012, 02:55
Re: SSCANF PROBLEM PLEASE HELP +REP - by MikkaVanBuuren - 19.08.2012, 02:57
Re: SSCANF PROBLEM PLEASE HELP +REP - by Shetch - 19.08.2012, 03:04
Re: SSCANF PROBLEM PLEASE HELP +REP - by Jstylezzz - 19.08.2012, 03:18
Re: SSCANF PROBLEM PLEASE HELP +REP - by MikkaVanBuuren - 19.08.2012, 04:22
Re: SSCANF PROBLEM PLEASE HELP +REP - by PawnFox - 19.08.2012, 04:24
Re: SSCANF PROBLEM PLEASE HELP +REP - by MikkaVanBuuren - 19.08.2012, 04:26
Re: SSCANF PROBLEM PLEASE HELP +REP - by MikkaVanBuuren - 19.08.2012, 04:45

Forum Jump:


Users browsing this thread: 2 Guest(s)