[FilterScript] [0.3.7] Flashing Police Lights (ELM)
#7

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:
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;
}
line 68:
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
Reply


Messages In This Thread
[0.3.7] Flashing Police Lights (ELM) - by TakeiT - 23.04.2015, 18:17
Re : [0.3.7] Flashing Police Lights (ELM) - by XDamienX007 - 23.04.2015, 18:42
Re: [0.3.7] Flashing Police Lights (ELM) - by Smileys - 23.04.2015, 19:10
Re: [0.3.7] Flashing Police Lights (ELM) - by TakeiT - 23.04.2015, 19:16
Re : [0.3.7] Flashing Police Lights (ELM) - by streetpeace - 23.04.2015, 19:46
Re: [0.3.7] Flashing Police Lights (ELM) - by Smileys - 23.04.2015, 20:03
Re: [0.3.7] Flashing Police Lights (ELM) - by d0nTtoucH - 24.04.2015, 11:49
Re: [0.3.7] Flashing Police Lights (ELM) - by TakeiT - 24.04.2015, 15:01
Re: [0.3.7] Flashing Police Lights (ELM) - by Maximun - 24.04.2015, 15:34
Re: [0.3.7] Flashing Police Lights (ELM) - by SpikY_ - 24.04.2015, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)