13.11.2011, 00:52
Comment the second loop out for now, try replace the code in the first loop with this:
Does it work?
pawn Код:
new pxVW = GetPlayerVirtualWorld(playerid);
if(IsPlayerInRangeOfPoint(playerid, 1, B_DATA[b][bEnterX], B_DATA[b][bEnterY], B_DATA[b][bEnterZ]) && pxVW == B_DATA[b][bEnterVW])
{
SetPlayerPos(playerid, B_DATA[b][bExitX], B_DATA[b][bExitY], B_DATA[b][bExitZ]);
SetPlayerInterior(playerid, B_DATA[b][bExitInt]);
SetPlayerVirtualWorld(playerid, B_DATA[b][bExitVW]);
}
else if(IsPlayerInRangeOfPoint(playerid, 1, B_DATA[b][bExitX], B_DATA[b][bExitY], B_DATA[b][bExitZ]) && pxVW == B_DATA[b][bExitVW])
{
SetPlayerPos(playerid, B_DATA[b][bEnterX], B_DATA[b][bEnterY], B_DATA[b][bEnterZ]);
SetPlayerInterior(playerid, B_DATA[b][bEnterInt]);
SetPlayerVirtualWorld(playerid, B_DATA[b][bEnterVW]);
}