help fast please!
#1

Hello.
Can someone tell me what's wrong in this ?
I've already made a stock for "KickAll", But i don't know it shows me that something is wrong with it..

The error:
Код:
C:\Program Files\lvcnrr\gamemodes\stuntDM.pwn(8037) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
PHP код:
CMD:kickall(playerid,params[])
{
    new 
string[128];
    if(!
IsPlayerName(playerid,"TheKing") && !IsPlayerName(playerid"Boss")) return SCM(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You have entered an invalid command, Type /commands or /cmds to see the server commands");
    
    
KickAll;
     
format(string,sizeof(string),"{FF0770}[ADMIN] {FFFFFF}All players have been kicked for an update!");
    
SendClientMessageToAll(COLOR_WHITE,string);
    
SendRconCommand("gmx");
    return 
1;

Reply
#2

Well fixed.
Someone fixed it for me on .. Skype.
Reply
#3

Try to do it with a for for loop, this might be a better way to do it


PHP код:
    for(new 1<= MAX_PLAYERSi++)
    {
        
Kick(i);
    } 
Reply
#4

pawn Код:
for(new i = 1; i <= MAX_PLAYERS; i++)
For
pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)