SA-MP Forums Archive
Interior Not Working - 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 Not Working (/showthread.php?tid=65007)



Interior Not Working - sidhu123 - 08.02.2009

Hey hey!... [SAP]Sidhu here. I'm making a shamal interior, but it doesn't seem to be working properly. When I go to the shamal, and press G, nothing happens.. Could somebody please help me fix this?


Thanks.

Pastebin http://pastebin.com/f297f7e99


Re: Interior Not Working - Backwardsman97 - 08.02.2009

You should use OnPlayerEnterVehicle for this instead of OnPlayerStateChange. You never declared IsInShml. But you also forgot to set it to 1 when they get in it.


Re: Interior Not Working - sidhu123 - 08.02.2009

Quote:
Originally Posted by backwardsman97
You should use OnPlayerEnterVehicle for this instead of OnPlayerStateChange. You never declared IsInShml. But you also forgot to set it to 1 when they get in it.
Could you help me script it so it works


Re: Interior Not Working - sidhu123 - 08.02.2009

Somebody please help me fix this problem. I will add your name to the credits!


Re: Interior Not Working - sidhu123 - 09.02.2009

I got a friend to help me fix the script, and this is what I have now.

http://pastebin.com/m1ba1f660

When I go to a shamal and press G, the player stil doesn't get teleported to the interior. Can someone please help me?

EDIT:

I got another friend to help me with another part of the script. When I try to compile it, my compiler stops working..
Could somebody please tell me if the scripting is wrong?

Pastebin : http://pastebin.com/f54c1008


Re: Interior Not Working - pen_theGun - 09.02.2009

http://pastebin.com/m21a5f2ee
(Not tested)



Re: Interior Not Working - sidhu123 - 09.02.2009

Quote:
Originally Posted by pen_†ĥęGun
It works!!... WOOO.. I'll give you credit