24.04.2015, 11:49
how do i fix this /
C:\Users\\Desktop\lights.pwn(45) : warning 235: public function lacks forward declaration (symbol "OnVehicleSirenStateChange")
C:\Users\\Desktop\lights.pwn(6 : error 017: undefined symbol "GetVehiclePoolSize"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
line 45:
line 68:
C:\Users\\Desktop\lights.pwn(45) : warning 235: public function lacks forward declaration (symbol "OnVehicleSirenStateChange")
C:\Users\\Desktop\lights.pwn(6 : error 017: undefined symbol "GetVehiclePoolSize"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
line 45:
Code:
public OnVehicleSirenStateChange(playerid, vehicleid, newstate) { if(newstate) { FlashTime[vehicleid] = SetTimerEx("OnLightFlash", flashtime, true, "d", vehicleid); } if(!newstate) { new panels, doors, lights, tires; KillTimer(FlashTime[vehicleid]); GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires); UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires); } return 1; }
Code:
for(new i=0; i<GetVehiclePoolSize(); i++) { KillTimer(FlashTime[i]); GetVehicleDamageStatus(i, panels, doors, lights, tires); UpdateVehicleDamageStatus(i, panels, doors, 0, tires); } return 1; } #endif