VW - 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)
+--- Thread: VW (
/showthread.php?tid=581521)
VW -
SpikeSpigel - 13.07.2015
Hi there. I have a problem on my server. Sometimes, I don't know after how much time.. The player VW is chaning to 1715.. I don't know why is this happening, I searched at "OnPlayerStateChange", "OnPlayerKeyStateChange" and "OnPlayerConnect".. How can I make a script that every time when a VW's player is changing to move the player to the VW 0 ? I tried something with >> getplayervirtualworld and setplayervirtualworld but didn't worked.. Annd, where do you think the script or the command is chaning the vw ?
Re: VW -
acade - 13.07.2015
You could set a timer, within the timer set it to reset the VW back to 0.
Do you have any timers that is changing your VW or under OnPlayerUpdate?
Re: VW -
SpikeSpigel - 13.07.2015
Quote:
Originally Posted by acade
You could set a timer, within the timer set it to reset the VW back to 0.
Do you have any timers that is changing your VW or under OnPlayerUpdate?
|
I don't use onplayerupdate.
Re: VW -
acade - 13.07.2015
Set a timer for it to be updated every second or few.
Have you gone through your script with the search function and found anything to do with Virtual World or the number your are getting? It could be your defining a float, not a integer on a string somewhere too.
Re: VW -
SpikeSpigel - 13.07.2015
Quote:
Originally Posted by acade
Set a timer for it to be updated every second or few.
Have you gone through your script with the search function and found anything to do with Virtual World or the number your are getting? It could be your defining a float, not a integer on a string somewhere too.
|
I think that I found it. It happends only for the new players. Not for everyone-.. I think it's something from database, I'll check that too.
Re: VW -
Tamer - 13.07.2015
Do some debugging.
Hook SetPlayerVirtualWorld with a print etc