An Odd problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: An Odd problem (
/showthread.php?tid=632110)
An Odd problem -
StrikerZ - 09.04.2017
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.
Re: An Odd problem -
Vince - 09.04.2017
Chat is global and not affected by virtual worlds unless you make it so. So yes, it is a virtual world problem.
Re: An Odd problem -
denNorske - 09.04.2017
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(playerid, virtual);
{
new str[80];
format(str, sizeof(str), "Your World changed to: %d", virtual);
SendClientMessage(playerid, -1, str );
SetPlayerVirtualWorld(playerid, virtual);
return 1;
}
#if defined _ALS_SetPlayerVirtualWorld
#undef SetPlayerVirtualWorld
#else
#define _ALS_SetPlayerVirtualWorld
#endif
#define SetPlayerVirtualWorld realSetPlayerVirtualWorld
Re: An Odd problem -
StrikerZ - 09.04.2017
Vince the chat isn't the global one. It's RP type which sends only to nearby players.
Re: An Odd problem -
StrikerZ - 09.04.2017
UPDATE: The mappings reload too within that bug.
Re: An Odd problem -
denNorske - 09.04.2017
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?
Re: An Odd problem -
StrikerZ - 10.04.2017
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?
Re: An Odd problem -
Sew_Sumi - 10.04.2017
It's a script issue then, what did you do/add before it started happening?
Re: An Odd problem -
StrikerZ - 10.04.2017
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?
Re: An Odd problem -
denNorske - 10.04.2017
Do you know / can you give more information when this happens?
Is it when someone spawns, dies, drives a car, walks, jumps... ?