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
#2

hmm.error line ?
Reply
#3

edited highlighted the lines with error.
Reply
#4

Ohhhhh ok ill test it when i get on my computer thats makes sense
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)