double loop - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: double loop (
/showthread.php?tid=73801)
double loop -
StrickenKid - 18.04.2009
will a double loop like this work?
for(new i=0, p=0; i<MAX_VEHICLES, p<MAX_PLAYERS; i++, p++)
{
LockedVehicle[.i][p] = 0;
}
note: i had to put a (.) in the "i" so it wouldn't mate it italic.
Re: double loop -
ICECOLDKILLAK8 - 18.04.2009
Try it...
Re: double loop -
StrickenKid - 18.04.2009
sorry, what i mean was, does it look like it would work....
also i would need someone to come into my test server to try it.
Re: double loop -
ICECOLDKILLAK8 - 18.04.2009
Quote:
Originally Posted by <__Ǝthan__>
sorry, what i mean was, does it look like it would work....
also i would need someone to come into my test server to try it.
|
Not really because your not checking if the player is connected anyway, Just do that loop then do
pawn Code:
if(LockedVehicle[1][0] == 0)
{
print("It worked!!1!!!1!!one");
}
BTW is this code in OnGameModeInit?