1 error in all 4 lines need help...
#1

so i got this error.
Код:
C:\Users\\Desktop\\BWorldWar3\gamemodes\worldwar3.pwn(292) : error 001: expected token: "-identifier-", but found "-integer value-"


4 Errors.
It's in all of these lines not just one
pawn Код:
new EUROPE = GetPlayersInTeamFromMaxPlayers(EUROPE);//error line
    new USA = GetPlayersInTeamFromMaxPlayers(USA);//error line
    new RUSSIA = GetPlayersInTeamFromMaxPlayers(RUSSIA);//error line
    new CHINA = GetPlayersInTeamFromMaxPlayers(CHINA);//error line
Help will be appreciated.

EDIT my stcok
Код:
stock GetPlayersInTeamFromMaxPlayers(teamid)
{
    new playercount = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerState(i) == PLAYER_STATE_NONE) continue;
        if(GetPlayerTeam[i] != teamid) continue;
        playercount++;
    }
    return playercount;
}
Reply


Messages In This Thread
1 error in all 4 lines need help... - by SwisherSweet - 06.07.2013, 02:02
Re: 1 error in all 4 lines need help... - by Guest123 - 06.07.2013, 02:22
Re: 1 error in all 4 lines need help... - by SwisherSweet - 06.07.2013, 02:24
Re: 1 error in all 4 lines need help... - by SwisherSweet - 06.07.2013, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)