Team Balancer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Team Balancer (
/showthread.php?tid=257302)
Team Balancer -
Venice - 25.05.2011
im get some error here im get this from script request thread
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
for(new teams; teams < 4; teams++)
{
if(teams == gTeam[playerid]) continue;
if(TeamPlayers[gTeam[playerid]] > TeamPlayers[teams])
{
SendClientMessage(playerid, COLOR, "Team full...");
return 0;
}
return 1;
}
errors
Код:
E:\2b to 3c editing and more\LSGW\gamemodes\GM5.pwn(487) : error 017: undefined symbol "TeamPlayers"
E:\2b to 3c editing and more\LSGW\gamemodes\GM5.pwn(487) : warning 215: expression has no effect
E:\2b to 3c editing and more\LSGW\gamemodes\GM5.pwn(487) : error 001: expected token: ";", but found "]"
E:\2b to 3c editing and more\LSGW\gamemodes\GM5.pwn(487) : error 029: invalid expression, assumed zero
E:\2b to 3c editing and more\LSGW\gamemodes\GM5.pwn(487) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Team Balancer -
[DM]Kane - 25.05.2011
Clearly, you haven't defined TeamPlayers.