31.01.2010, 09:54
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:
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?
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; }
With this code only the first loop wel be executed.
Anyone here that knows a solution for this?