20.08.2012, 13:04
Hi there, I have recently started to script my own server, I've been learning a lot of things in the past two weeks.
Now I'm experiencing a weird problem that I've Goggled and searched for in the forums but noone seems to have a solution to the problem so I thought I would post it here again and make the problem clear.
The problem is when a player logs out in an Interior and logs back in, exits the interior, all close by cars spawn in the incorrect places. For example... I spawn cars outside CJ's house, when I logout outside the house and log back in, the cars spawn correctly, but, if I logout inside CJ's house and log back in and exit the house, the cars spawn incorrectly, the spawn in the middle somehow.
Here is a screen-shot of me logging out outside and the logging back in...

And here is a screen-shot of me logging out inside the house then logging back in and exiting the house

I am setting the VirtualWorld to 0 and the Interior to 3 when entering the house, when I logout it saves the VirtualWorld and Interior in a file(together with all the other coords), then when I log back in it loads the data from the file and sets it when I spawn, then when I exit the house it again sets the VirtualWorld to 0 and the Interior to 0(Together with the other coords).
I would really appreciate it someone can help me solve the problem.
Now I'm experiencing a weird problem that I've Goggled and searched for in the forums but noone seems to have a solution to the problem so I thought I would post it here again and make the problem clear.
The problem is when a player logs out in an Interior and logs back in, exits the interior, all close by cars spawn in the incorrect places. For example... I spawn cars outside CJ's house, when I logout outside the house and log back in, the cars spawn correctly, but, if I logout inside CJ's house and log back in and exit the house, the cars spawn incorrectly, the spawn in the middle somehow.
Here is a screen-shot of me logging out outside and the logging back in...

And here is a screen-shot of me logging out inside the house then logging back in and exiting the house

I am setting the VirtualWorld to 0 and the Interior to 3 when entering the house, when I logout it saves the VirtualWorld and Interior in a file(together with all the other coords), then when I log back in it loads the data from the file and sets it when I spawn, then when I exit the house it again sets the VirtualWorld to 0 and the Interior to 0(Together with the other coords).
I would really appreciate it someone can help me solve the problem.