Interior issue
#1

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

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

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".
Reply
#4

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

interior
Reply
#6

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);
Reply
#7

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

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

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

Show us the whole command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)