22.10.2015, 17:22
Oh please, this is all completely redundant. At the very least there is no more out of bounds error, but at the expense of 285 times the memory usage and processing overhead. Well done! (yes, that is sarcastic).
PHP код:
new Bcar[7]; // 7 cars, oh my god!
public OnGameModeInit()
{
Bcar[0] = AddStaticVehicle(...);
Bcar[1] = AddStaticVehicle(...);
...
Bcar[6] = AddStaticVehicle(...);
}
for(new i; i < sizeof(Bcars); i++)
{
if(!VehicleOccupied(i) && bCars[i])
{
SetVehicleToRespawn(i);
}
}