[Please Help] Not doing interior.
#1

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

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

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

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

[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...
Reply
#6

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.

Reply
#7

Then how do I do what I want it to do?
Reply
#8

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

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

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)