Hi ich wollte ein Filterscript machen wo bestimmte autos in die SFPD garage kommen und habe es so gemacht :
Code
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" PD Autos");
print("--------------------------------------\n");
CreateVehicle(599,-1574.5313,742.4789,-5.0562,91.5092,0,1); // polizeiranger
CreateVehicle(599,-1574.7375,738.7222,-5.0563,90.0161,0,1); // polizeiranger
CreateVehicle(599,-1572.3574,734.4803,-5.0558,89.4589,0,1); // polizeiranger
CreateVehicle(599,-1572.7589,730.7044,-5.0528,91.3258,0,1); // polizeiranger
CreateVehicle(599,-1574.5612,726.1340,-5.0552,89.3587,0,1); // polizeiranger
CreateVehicle(528,-1616.6447,747.8227,-5.1987,180.7773,0,0); // kleinpanzerwagen
CreateVehicle(528,-1612.9604,748.2610,-5.2004,181.1752,0,0); // kleinpanzerwagen
CreateVehicle(528,-1608.6461,747.9092,-5.1989,180.1622,0,0); // kleinpanzerwagen
CreateVehicle(528,-1604.4565,747.7466,-5.1987,181.2174,0,0); // kleinpanzerwagen
CreateVehicle(528,-1600.5078,747.7700,-5.1988,180.1379,0,0); // kleinpanzerwagen
CreateVehicle(528,-1595.8311,748.2109,-5.1991,181.2503,0,0); // kleinpanzerwagen
CreateVehicle(528,-1592.0615,748.4337,-5.1984,179.7398,0,0); // kleinpanzerwagen
CreateVehicle(528,-1588.1892,747.9673,-5.1990,181.7108,0,0); // kleinpanzerwagen
CreateVehicle(523,-1616.4242,734.3177,-5.6709,356.3866,0,0); // polizeibike
CreateVehicle(523,-1612.7952,734.4681,-5.6707,0.4193,0,0); // polizeibike
CreateVehicle(523,-1608.3933,733.5458,-5.6707,0.8542,0,0); // polizeibike
CreateVehicle(523,-1605.8052,732.6465,-5.6667,1.0569,0,0); // polizeibike
CreateVehicle(523,-1599.8804,732.1584,-5.3346,3.2691,0,0); // polizeibike
CreateVehicle(523,-1597.1263,732.2814,-5.3347,2.2834,0,0); // polizeibike
CreateVehicle(523,-1592.1863,734.1628,-5.3348,3.3465,0,0); // polizeibike
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
Alles anzeigen
und dann kommt die meldung wenn ich es zur amx datei machen will :
Code
C:\Users\admin\Documents\samp testserver\neu\German Godfather-GGF v.2.00\Pawno\Pawno-Script-Tool\PD autos.pwn(49) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
kann mir einer sagen wie das richtig ausehen muss ? wäre nett da ich es zum ersten mal probiere