12.10.2009, 15:01
ammm i wanna do something like this : when someone join to COP , SHERIFF OR FBI TEAM and they spawn there should something happen
here is the code:
so when they spawn with these teams should happens this what is under playerspawn
but here is error:
hope you udnerstand me what i want
here is the code:
Код:
public OnPlayerSpawn(playerid) { if(gTeam[playerid] == TEAM_FBI || (gTeam[playerid] == TEAM_SHERIFF || (gTeam[playerid] == TEAM_COP)) { ----------------------------------------------> THE ERROR LINE SetPlayerInterior(playerid,0); SetPlayerCameraPos(playerid,2290.5300,2400.1262,18.4163); SetPlayerCameraLookAt(playerid, 2290.1648,2429.6484,10.8203); } return 1; }
but here is error:
Код:
C:\Documents and Settings\samp\Desktop\Server\gamemodes\WeedsCNR.pwn(289) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.