SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 12/11/2017, 10:43 AM   #1
Sanady
High-roller
 
Sanady's Avatar
 
Join Date: May 2012
Location: Los Santos
Posts: 1,469
Reputation: 132
Question OnPlayerFinishedDownloading

Good morning scripters , I found something strange for me, I used grandlarc GM to test few skins for my server which is in developing for a looong time, but let`s forget that and get to the point, so when I change virtual world everytime, callback OnPlayerFinishedDownloading is called, why?

Is it because it has parameter which contains virtualworld or it is bug? Here are few screens to demonstrate:
This is inside interior of the house:

When I left house:
__________________

Sanady is offline   Reply With Quote
Old 12/11/2017, 10:51 AM   #2
Romz
High-roller
 
Romz's Avatar
 
Join Date: Jun 2013
Location: Ukraine
Posts: 1,050
Reputation: 59
Default Re: OnPlayerFinishedDownloading

http://wiki.sa-mp.com/wiki/OnPlayerFinishedDownloading

Have you read the documentation for this function? It should be so!
Romz is online now   Reply With Quote
Old 12/11/2017, 10:53 AM   #3
Zeth
Gangsta
 
Zeth's Avatar
 
Join Date: Feb 2017
Location: Titan
Posts: 499
Reputation: 114
Default Re: OnPlayerFinishedDownloading

Read about OnPlayerFinishedDownloading
__________________
server.one-rp.com
Zeth is offline   Reply With Quote
Old 12/11/2017, 11:00 AM   #4
Sanady
High-roller
 
Sanady's Avatar
 
Join Date: May 2012
Location: Los Santos
Posts: 1,469
Reputation: 132
Default Re: OnPlayerFinishedDownloading

Quote:
Originally Posted by Debjit View Post
Ahaaaa ok thank you.
__________________

Sanady is offline   Reply With Quote
Old 12/11/2017, 12:30 PM   #5
BigETI
High-roller
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 1,033
Reputation: 334
Default Re: OnPlayerFinishedDownloading

This is a bad name for an event where it gets invoked at virtual world change.
BigETI is offline   Reply With Quote
Old 12/11/2017, 12:32 PM   #6
Kyle
High-roller
 
Kyle's Avatar
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,391
Reputation: 319
Default Re: OnPlayerFinishedDownloading

Quote:
Originally Posted by BigETI View Post
This is a bad name for an event where it gets invoked at virtual world change.
This should be altered so it's only actually called when downloads have taken place.
Kyle is offline   Reply With Quote
Old 12/11/2017, 06:58 PM   #7
IllidanS4
Huge Clucker
 
IllidanS4's Avatar
 
Join Date: Feb 2013
Posts: 296
Reputation: 181
Default Re: OnPlayerFinishedDownloading

Well, if there are no models, it is kinda true that the player has loaded all of them. There could be some additional parameter, for example the count of those models.
__________________
PawnPlus
YSF
Yet Another Lua Plugin
Long Function Names
 i_quat.inc 

kingsofsa.cz:8888 running Cinematic Mode
IllidanS4 is offline   Reply With Quote
Old 12/11/2017, 07:03 PM   #8
Romz
High-roller
 
Romz's Avatar
 
Join Date: Jun 2013
Location: Ukraine
Posts: 1,050
Reputation: 59
Default Re: OnPlayerFinishedDownloading

Quote:
Originally Posted by sprtik View Post
Well, if there are no models, it is kinda true that the player has loaded all of them. There could be some additional parameter, for example the count of those models.
The function really needs to be improved. Most likely, she will receive minor changes in RC2
Romz is online now   Reply With Quote
Old 12/11/2017, 07:52 PM   #9
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 622
Reputation: 295
Default Re: OnPlayerFinishedDownloading

I added that warning, because that's what I found counterintuitive when testing that callback.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 12/11/2017, 08:03 PM   #10
Sanady
High-roller
 
Sanady's Avatar
 
Join Date: May 2012
Location: Los Santos
Posts: 1,469
Reputation: 132
Default Re: OnPlayerFinishedDownloading

I don`t know why developer really wanted to call that callback everytime when player change his virtual world, I don`t see why?
__________________

Sanady 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



All times are GMT. The time now is 01:12 PM.


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