08.08.2009, 17:19
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.
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.