SA-MP Forums Archive
[Please Help] Not doing interior. - 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: [Please Help] Not doing interior. (/showthread.php?tid=119927)



[Please Help] Not doing interior. - Lynn09© - 09.01.2010

Well I goto the X Y Z, but I don't goto the interior.
Like if I do /startevent in a interior, and /joinevent my interior stays at ID 0.

Here is the commands.

http://pastebin.com/f3985b6c5


Re: [Please Help] Not doing interior. - patchkinson - 09.01.2010

Quote:
Originally Posted by 1Shot1Kill™
Well I goto the X Y Z, but I don't goto the interior.
Like if I do /startevent in a interior, and /joinevent my interior stays at ID 0.

Here is the commands.

http://pastebin.com/f3985b6c5
SetPlayerInterior(playerid,interiorid);


Re: [Please Help] Not doing interior. - Lynn09© - 09.01.2010

lol I meant, I want it to Auto set interior. Of where ever I do /startevent


Re: [Please Help] Not doing interior. - Correlli - 09.01.2010

Quote:
Originally Posted by 1Shot1Kill™
Like if I do /startevent in a interior, and /joinevent my interior stays at ID 0.
Of course it does:
pawn Код:
new interior = GetPlayerInterior(playerid);
new vw = GetPlayerVirtualWorld(playerid);
SetPlayerPos(playerid,ex,ey,ez);
SetPlayerVirtualWorld(playerid,vw);
SetPlayerInterior(playerid,interior);
This code will get your current interior (which was the ID 0 at your case) and it sets your interior to the same current interior which doesn't have any effect at all.


Re: [Please Help] Not doing interior. - Lynn09© - 09.01.2010

[quote=Don Correlli ]
Of course it does:
pawn Код:
new interior = GetPlayerInterior(playerid);
new vw = GetPlayerVirtualWorld(playerid);
SetPlayerPos(playerid,ex,ey,ez);
SetPlayerVirtualWorld(playerid,vw);
SetPlayerInterior(playerid,interior);
I already have that...
It don't help me with my problem...


Re: [Please Help] Not doing interior. - Correlli - 09.01.2010

Quote:
Originally Posted by 1Shot1Kill™
I already have that...
It don't help me with my problem...
Read before you post. I didn't told you to add that code (that's your code), i told you this:
Quote:

Of course it does:
This code will get your current interior (which was the ID 0 at your case) and it sets your interior to the same current interior which doesn't have any effect at all.




Re: [Please Help] Not doing interior. - Lynn09© - 09.01.2010

Then how do I do what I want it to do?



Re: [Please Help] Not doing interior. - Correlli - 09.01.2010

Quote:
Originally Posted by 1Shot1Kill™
Then how do I do what I want it to do?
Set the correct interior by using SetPlayerInterior.


Re: [Please Help] Not doing interior. - Lynn09© - 10.01.2010

I meant, how do I make it Auto detect it?
Instead of having,
SetPlayerInterior(playerid, 4);


Re: [Please Help] Not doing interior. - Lynn09© - 10.01.2010

Anyone?