Quote:
Originally Posted by Joe Staff
pawn Код:
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); } }//Closing brace wasn't here 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); } } //} This closing brace was supposed to be up there return 1; }
Proper indentation can go a long way.
|
ohh lol... Omg...Your avatar suits me lol.