[SOLVED]Simple question[SOLVED]
#1

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

pawn Код:
new PlayerTeam[MAX_PLAYERS];

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)