I need some help with peace of code please
#5

Quote:
Originally Posted by 0ne
OH right, didn't see that.

pawn Код:
ReturnPlayersInTeam(teamid)
{
    new t;
    for(new a;a<MAX_PLAYERS,IsPlayerConnected(a);a++) && if(!IsPlayerNpc(a)) if(gTeam[a]==teamid)t++;
    return t;
}
how about this?
**\SW.pwn(1553) : error 029: invalid expression, assumed zero
**\SW.pwn(1553) : warning 215: expression has no effect
**\SW.pwn(1553) : error 001: expected token: ";", but found "if"
**\SW.pwn(1553) : error 017: undefined symbol "IsPlayerNpc"
**\SW.pwn(1553) : fatal error 107: too many error messages on one line

and line 1553 = for(new a;a<MAX_PLAYERS,IsPlayerConnected(a);a++) && if(!IsPlayerNpc(a)) if(gTeam[a]==teamid)t++;
Reply


Messages In This Thread
I need some help with peace of code please - by DaneAMattie - 14.05.2010, 07:42
Re: I need some help with peace of code please - by 0ne - 14.05.2010, 07:52
Re: I need some help with peace of code please - by DaneAMattie - 14.05.2010, 07:58
Re: I need some help with peace of code please - by 0ne - 14.05.2010, 08:00
Re: I need some help with peace of code please - by DaneAMattie - 14.05.2010, 08:02
Re: I need some help with peace of code please - by DaneAMattie - 14.05.2010, 08:03
Re: I need some help with peace of code please - by 0ne - 14.05.2010, 08:05
Re: I need some help with peace of code please - by DaneAMattie - 14.05.2010, 08:07

Forum Jump:


Users browsing this thread: 1 Guest(s)