SA-MP Forums Archive
Interior issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior issue (/showthread.php?tid=179426)



Interior issue - Scriptissue - 26.09.2010

I made a new scrip by my self, easy one, /exit from a random place, and /enter.
but when I come forward to the icon and press /enter it spawns me in Blue berry beach.
PHP код:
  SetPlayerPosFindZ(playerid246.7010,63.2829,1003.6406);
                return 
1;
            } 
I did go to the interior and did /save but it doesn't work.


Re: Interior issue - DarrenReeder - 26.09.2010

Im not quite sure what you are asking, but have you set the interior? /interior while in debug mode...


Re: Interior issue - Scenario - 26.09.2010

Okay, it seems like you haven't learned the basics of the PAWN language.

pawn Код:
SetPlayerPosFindZ();
That is the wrong function to set a players position. Instead, you would need to use...

pawn Код:
SetPlayerPos();
For more help, visit the SA-MP Wiki section on "Functions".


Re: Interior issue - Scriptissue - 26.09.2010

I got the exact location of the X Y Z in which my player should spawn at, after using /enter.
But when I do /enter it just spawns me in the air, and I keep falling down.


Re: Interior issue - DarrenReeder - 26.09.2010

interior


Re: Interior issue - Scenario - 26.09.2010

Quote:
Originally Posted by Scriptissue
Посмотреть сообщение
I got the exact location of the X Y Z in which my player should spawn at, after using /enter.
But when I do /enter it just spawns me in the air, and I keep falling down.
Like I said already, you're using the wrong function.

Replace

pawn Код:
SetPlayerPosFindZ(playerid, 246.7010,63.2829,1003.6406);
With

pawn Код:
SetPlayerPos(playerid, 246.7010,63.2829,1003.6406);



Re: Interior issue - DarrenReeder - 26.09.2010

Yeah, use the right function and make sure you set the interior...


Re: Interior issue - Scriptissue - 26.09.2010

I just did, now it spawns me in the air.
I got the interior X Y Z by going into the Debug feature, driving to LV, entering the PD and doing /save .


Re: Interior issue - Scenario - 26.09.2010

By the way, if you added the interior to a filterscript, make sure you're loading it!


Re: Interior issue - DarrenReeder - 26.09.2010

Show us the whole command