Pawn can't handle 2 loops?
#1

Hey there everybody,
I have just found a kinda wierd problem, it seems like pawn can't handle 2 for-loops in 1 callback.
Like:
Код:
OnGameModeInit()
{
for(new i; i <= vehicles; i++)
{
AddStaticVehicle(model, X, Y*5, Z, A, 1, 0);
}

for(new i; i <= vehicles2; i++)
{
AddStaticVehicle(model, X, Y*5, Z, A, 1, 0);
}
return 1;
}
This is just an example, not my real code!
With this code only the first loop wel be executed.

Anyone here that knows a solution for this?
Reply


Messages In This Thread
Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 09:54
Re: Pawn can't handle 2 loops? - by [HiC]TheKiller - 31.01.2010, 09:59
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 10:16
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 11:59
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 12:07
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 12:18
Re: Pawn can't handle 2 loops? - by Streetplaya - 31.01.2010, 12:20
Re: Pawn can't handle 2 loops? - by goudewup - 31.01.2010, 13:44
Re: Pawn can't handle 2 loops? - by ray187 - 31.01.2010, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)