Transfender problem( Loco, lowriders)
#1

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;
}
Reply
#2

Why do you even use GetPlayerVirtualWorld when you have 2 parameters (newinteriorid, oldinteriorid) available?
Reply
#3

Because vitrual world is one thing, interior is second.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)