Problem declaring/calling a function
#1

Hello all, i wanted to make a function which sends a message to admins aka
PlayerInfo[playerid][pAdmin]>0
but error messages kept appearing.
ERROR MSG:
Quote:

C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 029: invalid expression, assumed zero
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : warning 215: expression has no effect
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 001: expected token: ";", but found ")"
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : error 029: invalid expression, assumed zero
C:\Users\moka\Desktop\PROG\03z\gamemodes\test.pwn( 364) : fatal error 107: too many error messages on one line

This is a function, above OnGameModeInIt and under main()
PHP код:
forward SendAdminsMessage(playerid,string);
public 
SendAdminsMessage(playerid,string)
{
    foreach (new 
iPlayer)
    {
        if(
PlayerInfo[i][pAdmin])>0)
        
SendClientMessage(i,RED,chaine);
    }
    return 
1;

I tried the same thing with changing it from public to stock.
And Thanks.
Reply


Messages In This Thread
Problem declaring/calling a function - by Alvin007 - 09.02.2015, 16:06
Re: Problem declaring/calling a function - by Schneider - 09.02.2015, 16:18
Re : Problem declaring/calling a function - by Alvin007 - 09.02.2015, 16:32
Re: Problem declaring/calling a function - by Schneider - 09.02.2015, 16:33
Re : Problem declaring/calling a function - by Alvin007 - 09.02.2015, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)