24.02.2010, 21:10
i don't understand....If theres a closing brace problem wouldn't there be errors....It's just not doing what it's supposed to be which is teleporting me from one place to another when exiting through yellow marker
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { if(oldinteriorid == 3 && newinteriorid == 0) { if(GetPlayerVirtualWorld(playerid) == 1) { SetPlayerVirtualWorld(playerid,0); //SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1877.6157,-1740.8281,13.4860); SetPlayerFacingAngle(playerid,187.0764); SetCameraBehindPlayer(playerid); LeftTwoFourSeven[playerid] =1; TimeToMoveTwoFourSeven[playerid] =3; TogglePlayerControllable(playerid, 0); } if(oldinteriorid == 4 && newinteriorid == 0) { if(GetPlayerVirtualWorld(playerid) == 2) { SetPlayerVirtualWorld(playerid,0); //SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1933.4030,-1776.1339,13.3828); SetPlayerFacingAngle(playerid,272.7751); SetCameraBehindPlayer(playerid); LeftTwoFourSeven[playerid] =2; TimeToMoveTwoFourSeven[playerid] =3; TogglePlayerControllable(playerid, 0); } } } return 1; }