Error virtual world
#5

Quote:
Originally Posted by SapMan
Посмотреть сообщение
Something like this is fine?

PHP код:
public OnPlayerRequestDownload(playeridtypecrc)
{
    
Player[playerid][Ok] = 0;
    
SendClientMessageToAll(-1"started");
    return 
1;
}
public 
OnPlayerFinishedDownloading(playeridvirtualworld)
{
    
Player[playerid][Ok] = 1;
    if(
Player[playerid][Ok] == 1) return 1;
    
SendClientMessageToAll(-1"finished");
    return 
1;

No. I'm a bit confused. You make it sound like seeing the message "started" and "finished" is the problem. I'm guessing you don't like seeing it every time you change virtual worlds; so why not just remove the messages all together?...

PHP код:
public OnPlayerRequestDownload(playeridtypecrc)
{
    return 
1;
}
public 
OnPlayerFinishedDownloading(playeridvirtualworld)
{
    return 
1;

Otherwise, if you use the code you posted; that message will be shown to every player online each time a single individual starts/finishes downloading models. But you sound like you don't want those messages at all, so. OnPlayerFinishedDownloading getting called each time someone changes virtual worlds is not a bug, it's meant to be like that because custom models can be specific to virtual worlds. So don't worry that it constantly gets called.
Reply


Messages In This Thread
Error virtual world - by SapMan - 18.08.2018, 19:58
Re: Error virtual world - by J0sh... - 18.08.2018, 23:39
Re: Error virtual world - by SapMan - 18.08.2018, 23:52
Re: Error virtual world - by Undef1ned - 30.08.2018, 04:00
Re: Error virtual world - by CantBeJohn - 30.08.2018, 12:49
Re: Error virtual world - by SapMan - 30.08.2018, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)