13.08.2011, 20:22
Код:
if (strcmp("/enter", cmdtext, true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1469.3627,-1010.8922,26.8438)) { SetPlayerPos(playerid, 246.2732,112.0255,1003.2188); SetPlayerInterior(playerid, 10); } if(PlayerTeam[playerid] == TEAM_POLICE) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 239.9734,117.2457,1003.2257)) { SetPlayerPos(playerid, 237.9738,117.6887,1003.2188); } } else if(PlayerTeam[playerid] == TEAM_GROVE) { SendClientMessage(playerid,COLOR_WHITE,"SERVER: You have to be in the Police Force to enter here."); return 1; } return 1; }
Код:
C:\Users\System user\Desktop\Server\gamemodes\Robert.pwn(164) : error 017: undefined symbol "PlayerTeam" C:\Users\System user\Desktop\Server\gamemodes\Robert.pwn(164) : warning 215: expression has no effect C:\Users\System user\Desktop\Server\gamemodes\Robert.pwn(164) : error 001: expected token: ";", but found "]" C:\Users\System user\Desktop\Server\gamemodes\Robert.pwn(164) : error 029: invalid expression, assumed zero C:\Users\System user\Desktop\Server\gamemodes\Robert.pwn(164) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if(PlayerTeam[playerid] == TEAM_POLICE) {