Hallo, ich kriege vollgende warnings in der Server-Log:
[11:59:03] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:12] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:12] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:17] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:17] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:25] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:25] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:29] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:29] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:33] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:40] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:40] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:44] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:44] sscanf warning: Strings without a length are deprecated, please add a destination size.
[11:59:45] sscanf warning: sscanf specifiers do not require '' before them.
[11:59:45] sscanf warning: Strings without a length are deprecated, please add a destination size.
code.
ocmd:cveh(playerid,params[])
{
new command[50];
if(Eingeloggt[playerid] == 0) return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt.");
if(sscanf(params,"%s",command))return SendClientMessage(playerid,HELLBLAU,"Benutzung: /cveh {AFFF00}[mhaube,kraum,alarm,motor]");
if(strcmp(command,"motor",true) == 0)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new car2 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
{
SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
}
else if(Motor[car2] == false)
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Motor[car2] = true;
GameTextForPlayer(playerid, "~g~Motor gestartet", 1000,1);
}
else
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[car2] = false;
GameTextForPlayer(playerid, "~r~Motor gestoppt", 1000, 1);
}
}
}
if(strcmp(command,"mhaube",true) == 0)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new car2 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
{
SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
}
else if(MotorHaube[car2] == false)
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
MotorHaube[car2] = true;
GameTextForPlayer(playerid, "~g~Motorhaube geöffnet", 1000,1);
}
else
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
MotorHaube[car2] = false;
GameTextForPlayer(playerid, "~r~Motorhaube geschlossen", 1000, 1);
}
}
}
if(strcmp(command,"kraum",true) == 0)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new car2 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
{
SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
}
else if(MotorRaum[car2] == false)
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
MotorRaum[car2] = true;
GameTextForPlayer(playerid, "~g~Kofferraum geöffnet", 1000,1);
}
else
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
MotorRaum[car2] = false;
GameTextForPlayer(playerid, "~r~Kofferraum geschlossen", 1000, 1);
}
}
}
if(strcmp(command,"alarm",true) == 0)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new car2 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car2) == 509 || GetVehicleModel(car2) == 481 || GetVehicleModel(car2) == 510)
{
SendClientMessage(playerid,GRAU,"Fahrräder besitzen kein Motor!");
}
else if(MotorAlarm[car2] == false)
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
MotorAlarm[car2] = true;
GameTextForPlayer(playerid, "~g~Alarm aktiviert", 1000,1);
}
else
{
GetVehicleParamsEx(car2,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car2,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
MotorAlarm[car2] = false;
GameTextForPlayer(playerid, "~r~Alarm deaktiviert", 1000, 1);
}
}
}
return 1;
}