OnPlayerInteriorChange help
#6



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.
Reply


Messages In This Thread
OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 20:06
Re: OnPlayerInteriorChange help - by killdahobo99 - 24.02.2010, 21:01
Re: OnPlayerInteriorChange help - by Joe Staff - 24.02.2010, 21:04
Re: OnPlayerInteriorChange help - by killdahobo99 - 24.02.2010, 21:08
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:10
Re: OnPlayerInteriorChange help - by Joe Staff - 24.02.2010, 21:17
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:24
Re: OnPlayerInteriorChange help - by Nero_3D - 24.02.2010, 21:26
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:29

Forum Jump:


Users browsing this thread: 3 Guest(s)