[HELP]In This Command
#1

Can someone help me fix this /kickall cmd ?

My Code:

Код:
CMD:kickall(playerid,params[])
{
        if (adlvl[playerid] < 6) return 0;
        new string[1000];
        format(string,sizeof(string),""COLOR_BLUE"{FF0000}[SERVER]:{FFFFFF} Admin\"%s (%d)\" has kicked all players except admins",GetName(playerid),playerid);
      	SendClientMessageToAll(-1,string);
		for(new i=0; i < MAX_PLAYERS; i++)
		{
			if (adlvl[playerid] < 5)
        	{	Kick(i);	}
        }
		return 1;
}
My Error:

Код:
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : warning 215: expression has no effect
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : error 001: expected token: ";", but found "-string-"
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : warning 215: expression has no effect
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : error 017: undefined symbol "GetName"
C:\Users\xavie\Desktop\Elite Gaming Server 0.3.7-R2\gamemodes\EliteGaming.pwn(23801) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
[HELP]In This Command - by Immortal99 - 03.08.2016, 16:42
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:46
Re: [HELP]In This Command - by AndySedeyn - 03.08.2016, 16:47
Re: [HELP]In This Command - by WhiteGhost - 03.08.2016, 16:49
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:50
Re: [HELP]In This Command - by JustMe.77 - 03.08.2016, 16:51
Re: [HELP]In This Command - by K0P - 03.08.2016, 16:52
Re: [HELP]In This Command - by Konstantinos - 03.08.2016, 17:15

Forum Jump:


Users browsing this thread: 3 Guest(s)