06.11.2011, 14:28
How make vehicle browser ? with keystate Key_up change vehicle Key_down previous vehicle
new _vehicle;
_vehicle = CreateVehicle(400, ..);
new vehicle = 400;
if(vehicle < 400) {
vehicle = 611;
} else if(vehicle > 611) {
vehicle = 400;
}
if(newkeys & KEY_UP) {
vehicle += 1;
DestroyVehicle(_vehicle);
_vehicle = CreateVehicle(vehicle, ...);
} else if(newkeys & KEY_DOWN) {
vehicle -= 1;
DestroyVehicle(_vehicle);
_vehicle = CreateVehicle(vehicle, ...);
}