[HELP]dcmd_admins
#1

Код:
dcmd_admins(playerid, params[])
{
	#pragma unused params
	new string[128],AdminName[MAX_PLAYER_NAME], count = 0;
	
	SendClientMessage(playerid, COLOR_GREEN3, " ");
	SendClientMessage(playerid, COLOR_GREEN3, "Online Administrators:");
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	 	if (IsPlayerConnected(i))
 		{
			if(PlayerInfo[i][AdminLevel] > 1)
	 		{
			GetPlayerName(i, AdminName, sizeof(AdminName));
			format(string, sizeof(string), "%s (ID:%d)", AdminName[i], i);
			SendClientMessage(playerid, COLOR_WHITE, string);
			count++;
			}
		}
	}
	if (count == 0) SendClientMessage(playerid,COLOR_WHITE,"No administrators online in the list, try /mods to see online moderators.");

return 1;
}
When i type "/admins" in game, it shows as (my nick: Lastrace, second player's nick: Firstrace):

Online Administrators:

astrace(ID:0)
rstrace(ID:1)


It eats my first letter (L), and at second it eats his first two letter (F and i), whats wrong there?
Reply


Messages In This Thread
[HELP]dcmd_admins - by LasTRace - 25.07.2010, 09:42
Re: [HELP]dcmd_admins - by Flo_White - 25.07.2010, 09:47
Re: [HELP]dcmd_admins - by Last_Stand_Guardian - 25.07.2010, 09:48
Re: [HELP]dcmd_admins - by LasTRace - 25.07.2010, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)