Custom function
#1

pawn Code:
public HelpRequest(color,string[])
{
        for(new i = 0; i < MAX_PLAYERS; i++)
    {
                 if(IsPlayerConnected(i))
        {
                        if (PlayerInfo[pAdmin] ==1(i))
            {
                         SendClientMessage(i, color, string);

                        }
                   }
          }
          return 1;
}
Trying to make this function so it sends a message to all the players whos pAdmin equals to the value of 1 (Helper value) But i keep getting these errors..

Code:
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(479) : error 029: invalid expression, assumed zero
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(479) : warning 215: expression has no effect
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(479) : error 001: expected token: ";", but found ")"
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(479) : error 029: invalid expression, assumed zero
C:\Users\Scripting.Ash-PC\Desktop\Scripting\Roleplaying Server\gamemodes\roleplay.pwn(479) : 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
Custom function - by Lz - 15.12.2012, 13:58
Re: Custom function - by Djole1337 - 15.12.2012, 14:00
Re: Custom function - by Threshold - 15.12.2012, 14:01
Re: Custom function - by Mean - 15.12.2012, 14:02
Re: Custom function - by Lz - 15.12.2012, 14:19
Re: Custom function - by XStormiest - 15.12.2012, 14:33
Re: Custom function - by Lordzy - 15.12.2012, 14:38

Forum Jump:


Users browsing this thread: 5 Guest(s)