Heii Leute,
ich habe ein Problem.
Mein Script:
#include <a_samp>
new sirene[MAX_VEHICLES];
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;
}
if(strcmp(cmdtext, "/motorhaubeauf",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/motorhaubezu",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
return 1;
}
if(strcmp(cmdtext, "/kofferraumauf",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
return 1;
}
if(strcmp(cmdtext, "/kofferraumzu",true) == 0)
{
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
return 1;
}
return 0;
}
Und meine Errors:
C:\Users\Ferien\Desktop\funk.pwn(25) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(26) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(35) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(36) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(45) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(46) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(55) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Users\Ferien\Desktop\funk.pwn(56) : error 017: undefined symbol "SetVehicleParamsEx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.