Why doesn't this small filterscript I made work?
#1

Hi I read through the pawno manuals..

But anyways I am trying to explore with filterscripts, and I cant seem to find out why my filterscript doesn't work. It compiles without errors, it just doesn't work.



#include <a_samp>

#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("tpg");
print("--------------------------------------\n");
return 1;
}

public OnVehicleSpawn(vehicleid)
{
AddVehicleComponent(vehicleid, 1010);
return 1;
}

#endif



I have a feeling it's the "#endif" because when I compiled it earlier it said it expected token "endif". After looking at other peoples filterscripts I didn't see "#endif" in them, so I didn't understand why I needed it. I just put it in there, and that solved the error problem.
Reply


Messages In This Thread
Why doesn't this small filterscript I made work? - by ThePS3Guy - 08.08.2009, 17:19
Re: Why doesn't this small filterscript I made work? - by Backwardsman97 - 08.08.2009, 17:28
Re: Why doesn't this small filterscript I made work? - by ThePS3Guy - 08.08.2009, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)