Guten Morgen ich habe mir das script von haxler zum anschauen geliehen fs
aber es kommt immer ein error
error 017: undefined symbol "AttachObjectToVehicle"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Scirpt:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
new sirene[MAX_VEHICLES];
public OnFilterScriptInit(){print("\n--------------------------------------");print("sirene");print("--------------------------------------\n");return 1;}
#else
main(){}
#endif
public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp("/sirenean", cmdtext, true, 10) == 0){ new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,x,y,z,0,0,0,100); AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.2,0,0.71,0,0,0);return 1;}if (strcmp("/sireneaus", cmdtext, true, 10) == 0){ DestroyObject(sirene[GetPlayerVehicleID(playerid)]);return 1;}return 0;}