08.11.2010, 13:54
EDIT: Oh, I now get it.. Use loops..
#define MAX_CARS (amount of cars you got)
for (new i = 0; i < MAX_CARS; i++)
{
}
^ explanation: i = 0, and when i is lower then MAX_CARS, then i goes up. So if MAX_CARS is 4, it does 0, 1, 2, 3.
#define MAX_CARS (amount of cars you got)
for (new i = 0; i < MAX_CARS; i++)
{
}
^ explanation: i = 0, and when i is lower then MAX_CARS, then i goes up. So if MAX_CARS is 4, it does 0, 1, 2, 3.