SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/08/2018, 10:21 PM   #1
homelessdrop
Little Clucker
 
homelessdrop's Avatar
 
Join Date: Jan 2016
Posts: 41
Reputation: 17
Thumbs up Virtual world 0.3DL

Hello guys, i have problem with the virtual world in this version. If im turn off the ( useartwork 1 = useartwork 0 ) all work's fine, but if im tturn on this back, virtual world command bugged. Command is fine, sql save too changed, but i dont see player's / vehicle's when using useartwork 1.
So please help me, what's wrong?

Last edited by homelessdrop; 10/08/2018 at 12:40 AM.
homelessdrop is offline   Reply With Quote
Old 09/08/2018, 10:50 PM   #2
Michie
Little Clucker
 
Join Date: Mar 2015
Posts: 6
Reputation: 0
Default Re: Virtual world 0.3DL

If I remember right, I had some problems with this myself. Try adding this somewhere in your script: Then I guess it will work when you use useartwork.

This is a callback added in 0.3.DL.

PHP Code:
public OnPlayerFinishedDownloading(playeridvirtualworld)
{
    return 
1;

Michie is offline   Reply With Quote
Old 09/08/2018, 11:11 PM   #3
homelessdrop
Little Clucker
 
homelessdrop's Avatar
 
Join Date: Jan 2016
Posts: 41
Reputation: 17
Default Re: Virtual world 0.3DL

Thank you for you'r try, but i have some that problem. Im placed this on the script, but nothing, when im using the command and set the vw 0-1 dont see vehicles or player's, so its wrong, or just im very **** for using this. Maybe anything else?
homelessdrop is offline   Reply With Quote
Old 09/08/2018, 11:28 PM   #4
Michie
Little Clucker
 
Join Date: Mar 2015
Posts: 6
Reputation: 0
Default Re: Virtual world 0.3DL

Did you remember to restart your server? Because if it works when you have userartwork turned off, then this is pretty much the only logical explanation. It is called each time a change in the virtual world occurs.

The way I stumbled onto this problem: I tried entering a house, and each time I exited the virtual world would be zero, the same world for every other player and vehicles but I could still not see players/vehicles. Everything disappeared. The problem was fixed right after I added this, after reading the scripting wiki.

Oh. Do you have any custom objects to actually download? In that folder?
Michie is offline   Reply With Quote
Old 09/08/2018, 11:54 PM   #5
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 110
Reputation: 15
Default Re: Virtual world 0.3DL

Quote:
Originally Posted by CantBeJohn View Post
If you're running 0.3.DL and are experiencing virtualworld issues, then make sure you've got this done:

Update your includes to 0.3.DL.
Add “OnPlayerFinishedDownloading” somewhere in your script.
Add in the “models” folder from the 0.3.DL’s package.

And it should be fixed. The issue is basically that you’re making the server download models through the server configuration while not having a models folder or not having “OnPlayerFinishedDownloading” in your script, causing virtualworld/syncing issues.
Follow these steps.
CantBeJohn is offline   Reply With Quote
Old 10/08/2018, 12:38 AM   #6
homelessdrop
Little Clucker
 
homelessdrop's Avatar
 
Join Date: Jan 2016
Posts: 41
Reputation: 17
Default Re: Virtual world 0.3DL

@CantBeJohn oh yeah,, thank you.
homelessdrop 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
Virtual world Desync/world problem jasperschellekens Scripting Help 3 25/04/2018 11:26 AM
Set all virtual world Glossy42O Scripting Help 7 16/12/2014 05:28 AM
[Ajuda] Virtual World Hydra_RuleZ Português/Portuguese 6 06/09/2012 04:35 PM
Virtual World... dorperez Scripting Help 5 11/01/2012 05:46 AM
Virtual World shahartal Help Archive 8 04/08/2011 06:24 PM


All times are GMT. The time now is 03:10 AM.


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