SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/06/2018, 04:48 AM   #1
wilking
Little Clucker
 
Join Date: May 2017
Posts: 35
Reputation: 0
Default Door Bug

Tell me why the member in a door then out again was transferred to the new vw

Where does this error come from?

Model

Mysql
wilking is offline   Reply With Quote
Old 15/06/2018, 04:50 AM   #2
TadePoleMG
Big Clucker
 
TadePoleMG's Avatar
 
Join Date: Apr 2018
Location: Uttar Pradesh, India
Posts: 167
Reputation: 2
Default Re: Door Bug

pls explain
__________________
-| Gaming 'N' Scripting |-
TadePoleMG is offline   Reply With Quote
Old 15/06/2018, 05:18 AM   #3
wilking
Little Clucker
 
Join Date: May 2017
Posts: 35
Reputation: 0
Default Re: Door Bug

i go in a door
then , i leave it and unseen everybody

Help me please ...
wilking is offline   Reply With Quote
Old 15/06/2018, 05:53 AM   #4
GTLS
Gangsta
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 839
Reputation: 91
Default Re: Door Bug

Upon exit the door, you have to set player's virtual world to outside world. When you enter a door, your virtual world is set to something else like Door ID or something. This is done so that 2 doors can have multiple interiors but players inside will be technically together. Virtual Worlds are Server Sided interior IDs. Use

Code:
SetPlayerVirtualWorld()
to set their VW to outside world.(probably 0). You can use a flag variable to store player's old VW aswell. When he enters a door, his old VW will be stored inside that flag variable, and upon exit, you set player's VW to the value of that flag variable. This is useful if players enters a door inside another door.
__________________

I don't help for rep. I help cuz I was helped in the past.


California State Roleplay - X Update Now under beta testing phase. Stay Tuned.
GTLS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move a door/open the LSPD door? EtayJ Scripting Help 2 16/11/2016 03:09 AM
See if a player is near to the driver's door or the passenger door Hantex. Scripting Help 9 03/09/2014 11:06 PM
help iam make map and make door in place cop office and door no open when player need go Abdo2013 Scripting Help 6 16/04/2012 08:13 PM
Door Id Jo1Nt Help Archive 2 28/01/2010 12:17 PM
Help with door arachimi Help Archive 5 11/01/2010 06:49 PM


All times are GMT. The time now is 05:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.