double loop
#1

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.
Reply
#2

Try it...
Reply
#3

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.
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)