Hero192 Posted February 11, 2016 Share Posted February 11, 2016 Hello guys, I have a question about why scripters loop the dpPoll result? and is this correct? result.value or result["value"] Link to comment
Bonsai Posted February 12, 2016 Share Posted February 12, 2016 Well just read https://wiki.multitheftauto.com/wiki/DbPoll. It might take a while until the result is returned. So you try again until its finished or timed out. And result.value or result["value"] is the same. Link to comment
tosfera Posted February 12, 2016 Share Posted February 12, 2016 It might take a while until the result is returned. So you try again until its finished or timed out. Not always the case, most of the times the dbPoll is being looped because of the fact that you're not going to write 150 times; createVehicle( pollResult [ 1 ].model, ..., ..., ... ) Loops are used to create things more dynamic and less of a pain. If you're selecting all your vehicles, you're not going to spawn them line by line. You're going to loop over them and spawn them in the loop to avoid the pain in the arshe Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now