AFk list code
#1

Код:
COMMAND:afklist(playerid,params[])
{
    #pragma unused params
        new count = 0;
        new string[128];
        new IsAfkPlayer[MAX_PLAYER_NAME];
  		SendClientMessage(playerid, COLOR_GREEN, " ");
        SendClientMessage(playerid, COLOR_GREEN, "___________ |- Online Admins -| ___________");
		SendClientMessage(playerid, COLOR_GREEN, " ");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
	 		if (IsPlayerConnected(i))
 			{
				if(IsAfk[playerid] == 1)
				{
				    GetPlayerName(IsAfk[playerid],IsAfkPlayer,sizeof(IsAfkPlayer));
					format(string, "AFK: %s",IsAfkPlayer);
					SendClientMessage(playerid, COLOR_WHITE, string);
					count++;
				}
			}
		}
		if (count == 0)
		SendClientMessage(playerid,COLOR_BRIGHTRED,"No one is AFK here buddy.");
		SendClientMessage(playerid, COLOR_GREEN, " _______________________________________");
		return 1;
}
May i know why is there a argument mismatch?

Idk :S
Reply


Messages In This Thread
AFk list code - by [GOD]Dragonster82 - 01.10.2011, 02:17
Re: AFk list code - by grand.Theft.Otto - 01.10.2011, 02:19
Re: AFk list code - by [GOD]Dragonster82 - 01.10.2011, 02:21
Re: AFk list code - by Pharrel - 01.10.2011, 02:23
Re: AFk list code - by [GOD]Dragonster82 - 01.10.2011, 02:26
Re: AFk list code - by grand.Theft.Otto - 01.10.2011, 03:11
Re: AFk list code - by Pharrel - 01.10.2011, 03:14
Re: AFk list code - by Yamoo - 01.10.2011, 03:17
Re: AFk list code - by grand.Theft.Otto - 01.10.2011, 03:29
Re: AFk list code - by cessil - 01.10.2011, 09:54

Forum Jump:


Users browsing this thread: 2 Guest(s)