22.08.2010, 16:54
Improvement: This
can just as easily be done in the declaration itself by doing:
pawn Code:
for(new i=0;i<MAX_VEHICLES;i++) {
fuel[i] = 100; //sets every car's fuel to 100 in a loop
}
pawn Code:
new fuel[MAX_VEHICLES] = {100, 100, ...}; // exactly like this. This will set them all to 100