Hey ich habe da ein kleines Problem mit dem Motor&Licht System in der Form von einem DCMD befehl hier der Error natürlich kriege ich den zweimal einmal motor und einmal licht:
C:\Users\User\Desktop\SAMP SERVER\gamemodes\Selfmade.pwn(668) : warning 203: symbol is never used: "params"
C:\Users\User\Desktop\SAMP SERVER\gamemodes\Selfmade.pwn(696) : warning 203: symbol is never used: "params"
Zeilen um die es sich Handelt:
Code
//DCMD DEKLERATIONEN
dcmd(motor, 5,cmdtext);
dcmd(licht, 5,cmdtext);
//DCMD Befehele
dcmd_motor(playerid, params[]) //Betroffene Zeile
{
if(GetPlayerState(playerid !=PLAYER_STATE_DRIVER)) return
SendClientMessage(playerid,ROT,"Du bist nicht der Fahrer eines Fahrzeuges!");
new vID=GetPlayerVehicleID(playerid),
tmp_engine,
tmp_lights,
tmp_alarms,
tmp_doors,
tmp_bonnet,
tmp_boot,
tmp_objective;
//Motor An/Aus
GetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarms, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
if(tmp_engine==1)
{
tmp_engine = 0;
tmp_lights = 0;
}
else
{
tmp_engine = 1;
}
SetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarms, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
return 1;
}
dcmd_licht(playerid, params[]) //Betroffene Zeile
{
if(GetPlayerState(playerid !=PLAYER_STATE_DRIVER)) return
SendClientMessage(playerid,ROT,"Du bist nicht der Fahrer eines Fahrzeuges!");
new vID=GetPlayerVehicleID(playerid),
tmp_engine,
tmp_lights,
tmp_alarms,
tmp_doors,
tmp_bonnet,
tmp_boot,
tmp_objective;
//Licht An/Aus
GetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarms, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
if(tmp_lights==1)
{
tmp_lights = 0;
}
else
{
tmp_lights = 1;
}
SetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarms, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
return 1;
}
Alles anzeigen
Vielen Dank im Vorraus!