An Odd problem
#1

I'm having an odd problem. For a player the world gets changed for a second for two. Like all vehicles/players will disappear and again appear after 3-4 seconds. But our chat will be visible to the players which were with us before. That means it isnt a virtual world problem.
Reply
#2

Chat is global and not affected by virtual worlds unless you make it so. So yes, it is a virtual world problem.
Reply
#3

It sounds very much as a virtual world problem to me.

Have you tried hooking the "SetPlayerVirtualWorld" with _ALS_ and then tried to print each time it's called?
This way you can see if you actually change virtual world or not, and continue from there

Example
PHP код:
stock realSetPlayerVirtualWorld(playeridvirtual);
{
    new 
str[80];
    
format(strsizeof(str), "Your World changed to: %d"virtual);
    
SendClientMessage(playerid, -1str );
    
SetPlayerVirtualWorld(playeridvirtual);
    return 
1;
}
#if defined _ALS_SetPlayerVirtualWorld
    #undef SetPlayerVirtualWorld
#else
    #define _ALS_SetPlayerVirtualWorld
#endif
#define SetPlayerVirtualWorld realSetPlayerVirtualWorld 
Reply
#4

Vince the chat isn't the global one. It's RP type which sends only to nearby players.
Reply
#5

UPDATE: The mappings reload too within that bug.
Reply
#6

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
UPDATE: The mappings reload too within that bug.
Have you done what I told you to try? Also add some prints on OnPlayerInteriorChange.

And does the Nearby chat take the Worlds in consideration?
Reply
#7

Alright. So after debugging the vw and interior weren't changed at all. They were at 0. The mappings too reload when it occurs. Any solution?
Reply
#8

It's a script issue then, what did you do/add before it started happening?
Reply
#9

Hm.. I don't remember, it's an old issue, I thought it might fix itself, but no its been worse now. So I came up to ask here. What do you think it can be?
Reply
#10

Do you know / can you give more information when this happens?
Is it when someone spawns, dies, drives a car, walks, jumps... ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)