13.11.2011, 01:09
Commented the second loop and no, it still refuses to continue after the loop.
LE:
I commented the line where's the 'suspicious' part ... where it 'refuses' to continue.
LE:
pawn Код:
for(new b = 1; b<=MAX_BUYABLE_BUS; b++)
{
print("Start debug.");
new pxVW = GetPlayerVirtualWorld(playerid);
if(IsPlayerInRangeOfPoint(playerid, 1, B_DATA[b][bEnterX], B_DATA[b][bEnterY], B_DATA[b][bEnterZ]))
{
print("Debug 1.");
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])
{
print("Debug 2.");
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]);
}
print("Debug 3.");
// HERE'S SOMETHING WRONG WITH THE CODE ! STOPS HERE
}