Hallo,
könnt ihr bitte was an meinen befehl machen (/motor)
hier ist der command text
if (strcmp(cmdtext, "/motor", true)==0)
{
if (IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(GetVehicleModel(vid) == 509 || GetVehicleModel(vid) == 481 || GetVehicleModel(vid) == 510)
{
SendClientMessage(playerid, COLOR_RED, "Du sitzt auf einem Fahrrad. Das hat keinen Motor!");
}
else if(engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET)
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast den Motor angeschaltet!");
}
else
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid,0xFF0000,"Du hast den Motor ausgeschaltet!");
}
}
return 1;
}
Hier die Error´s
(8513) : error 017: undefined symbol "GetVehicleParamsEx"
(8518) : error 017: undefined symbol "VEHICLE_PARAMS_OFF"
(8520) : error 017: undefined symbol "SetVehicleParamsEx"
(8525) : error 017: undefined symbol "SetVehicleParamsEx"
(8512) : warning 203: symbol is never used: "objective"
(8512) : warning 203: symbol is never used: "boot"
(8512) : warning 203: symbol is never used: "bonnet"
(8512) : warning 203: symbol is never used: "doors"
(8512) : warning 203: symbol is never used: "alarm"
(8512) : warning 203: symbol is never used: "lights"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
muss ich was downloaden oder was soll ich tuhn (pls zu jeden error was sagen danke...)