24.02.2013, 18:40
I have this code:
http://pastebin.com/D7VQYMJ2
The problem is in this line:
for(new v = 0; v <= 20; v++) if(!IsVehicleOccupied(MVehicle[v])) PutPlayerInVehicle(i, MVehicle[v], 0),printf("ID: %d, V: %d",i,v);
The ways its suppose to work:
looping through all players, checking if the player is in the monster activity,
then its suppose to put him inside one of the activity cars (ONLY IF ITS FREE), then to the next player ..
The way its actually working:
Its looping through all players, checking if the player is in the monster activity,
then its putting him inside one of the activity cars, and here starts the problem:
when its moving to the next player, its putting him in the same vehicle as the previous player ..
http://pastebin.com/D7VQYMJ2
The problem is in this line:
for(new v = 0; v <= 20; v++) if(!IsVehicleOccupied(MVehicle[v])) PutPlayerInVehicle(i, MVehicle[v], 0),printf("ID: %d, V: %d",i,v);
The ways its suppose to work:
looping through all players, checking if the player is in the monster activity,
then its suppose to put him inside one of the activity cars (ONLY IF ITS FREE), then to the next player ..
The way its actually working:
Its looping through all players, checking if the player is in the monster activity,
then its putting him inside one of the activity cars, and here starts the problem:
when its moving to the next player, its putting him in the same vehicle as the previous player ..