1 error in all 4 lines need help... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 1 error in all 4 lines need help... (
/showthread.php?tid=448826)
1 error in all 4 lines need help... -
SwisherSweet - 06.07.2013
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;
}
Re: 1 error in all 4 lines need help... -
Guest123 - 06.07.2013
hmm.error line ?
Re: 1 error in all 4 lines need help... -
SwisherSweet - 06.07.2013
edited highlighted the lines with error.
Re: 1 error in all 4 lines need help... -
SwisherSweet - 06.07.2013
Ohhhhh ok ill test it when i get on my computer thats makes sense