27.09.2015, 08:40
Код:
if(BusID[playerid] == 1) { GetVehiclePos(NPCBlueBus, busx, busy, busz); GetVehicleZAngle(NPCBlueBus, angle); } else { GetVehiclePos(NPCBlackBus, busx, busy, busz); GetVehicleZAngle(NPCBlackBus, angle); }
Review https://sampwiki.blast.hk/wiki/Control_Structures
EDIT: Just realized that code does the same thing in both blocks, because you dont change the variables 'NPCBlueBus', 'busx', 'busy' and 'busz'. So it will not do what you want it to.