Ich habe da ein Problem mit meinem Motor&Licht System was sich auf DCMD bezieht ich kriege folgende Warnings:
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"
Habe es Natürlich auch Deklariert
dcmd(motor, 5,cmdtext);
dcmd(licht, 5,cmdtext);
//DCMD Befehele
dcmd_motor(playerid, params[])
{
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[])
{
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;
}