22.04.2016, 07:24
Quote:
You didn't return a value
Do it by typing "return 1;" end of the if, and another "return 1;" at the end of the CMD Tell me what's happen after you do this. |
Код:
if(EventCars[rand] == INVALID_VEHICLE_ID) { new Float:x, Float:y, Float:z; new Float:Angle; GetPlayerFacingAngle(i, Angle); GetPlayerPos(i, x, y, z); EventCars[rand] = CreateVehicle(Events[EventCar], x,y,z+2,Angle,-1,-1,VEHICLE_RESPAWN); VehicleFuel[EventCars[rand]] = 100.0; Vehicle_ResetData(EventCars[rand]); PutPlayerInVehicle(i, EventCars[rand], 0); SetPlayerHealth(i, Events[Health]); SetPlayerArmor(i, Events[Armor]); CarShooting[i] = 1; return 1; }