SA-MP Forums Archive
[SOLVED]Simple question[SOLVED] - 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: [SOLVED]Simple question[SOLVED] (/showthread.php?tid=155008)



[SOLVED]Simple question[SOLVED] - park4bmx - 16.06.2010

How can i do this...
_________________________________________________
I have a chekpoint in my DM when a player from the OTHER TEAM Enter's it, it sas TEAM 1 WINNES..
And then i want it so that all the players from that TEAM to DIE when he/she enters the Checkpoint
_________________________________________________
So i dont know how to do it
I DO THIS
pawn Код:
if(PlayerTeam[playerid] == 5);
And i get this
Код:
error 017: undefined symbol "PlayerTeam"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line



Re: Simple question - Carlton - 16.06.2010

pawn Код:
new PlayerTeam[MAX_PLAYERS];

public MyFunction() {
  if(PlayerTeam[playerid] == 5) {
    ...
  }
}



Re: Simple question - park4bmx - 16.06.2010

Quote:
Originally Posted by Carlton
pawn Код:
new PlayerTeam[MAX_PLAYERS];

public MyFunction() {
  if(PlayerTeam[playerid] == 5) {
    ...
  }
}
Cool Thanks for Reply ifound a different way