if(strcmp(cmd, "/lights",true) == 0)
{
new status[4];
if(sscanf(params,"s",status))return SendClientMessage(playerid,COLOR_GRAD1,"Benutzung: /licht [an/aus]");
new engine,lights,alarm,doors,bonnet,boot,objective;
if(IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicleID(playerid);
if(strcmp(status,"an",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
licht[vid] = true;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Du hast das Licht angeschaltet!");
}
else if(strcmp(status,"aus",true) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
licht[vid] = false;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"*Du hast das Licht ausgeschaltet!");
}
}
return 1;
}
C:\Users\Tufan\Desktop\server\gamemodes\meinscript.pwn(18161) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.