Transfender problem( Loco, lowriders) - 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: Transfender problem( Loco, lowriders) (
/showthread.php?tid=613789)
Transfender problem( Loco, lowriders) -
DusanInfinity - 31.07.2016
When i enter to the transfender for lowriders, my car dissapear... Is there any fix?
I found problem
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if((newinteriorid == 5 || newinteriorid == 2 || newinteriorid == 12) && GetPlayerVirtualWorld(playerid) == 0) SetPlayerVirtualWorld(playerid, 1);
if((oldinteriorid == 5 || oldinteriorid == 2 || oldinteriorid == 12) && newinteriorid == 0 && GetPlayerVirtualWorld(playerid) == 1) SetPlayerVirtualWorld(playerid, 0);
return 1;
}
Re: Transfender problem( Loco, lowriders) -
Freaksken - 31.07.2016
Why do you even use GetPlayerVirtualWorld when you have 2 parameters (newinteriorid, oldinteriorid) available?
Re: Transfender problem( Loco, lowriders) -
DusanInfinity - 01.08.2016
Because vitrual world is one thing, interior is second.
Re: Transfender problem( Loco, lowriders) -
Type-R - 02.08.2016
Well i dont understand why you are switching the virtual worlds, but the problem that i see is eith them. When you switch players virtual world, you should switch his vehicles virtual world also or it will not appear.