Hey leute hab ein kleines Problem ... ich hatte ganz viele warnings von wegen warning 217: loose indentation... hab diese dann auch beseitigt aber einen bekomm ich einfach nicht weg ...
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(newkeys & LIGHT_KEY) { if(IsPlayerInAnyVehicle(playerid)) { new engine,lights,alarm,doors,bonnet,boot,objective; new vid = GetPlayerVehicleID(playerid); if(licht[vid] == false) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); licht[vid] = true; } else if(licht[vid] == true) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); licht[vid] = false; } } } else if(PRESSED(START_KEY)) { if(IsPlayerInAnyVehicle(playerid)) { new vid = GetPlayerVehicleID(playerid); if(motor[vid] == false) { SendClientMessage(playerid,0xFF0000,"Der Motor wird gestartet..."); KillTimer(motortimer[vid]); motortimer[vid] = SetTimerEx("StartEngine",START_TIME,0,"dd",playerid,vid); } else { KillTimer(motortimer[vid]); motortimer[vid] = SetTimerEx("StopEngine",STOP_TIME,0,"dd",playerid,GetPlayerVehicleID(playerid)); } } }
else if (RELEASED(START_KEY)) {
if(IsPlayerInAnyVehicle(playerid)) { new vid = GetPlayerVehicleID(playerid); if(motor[vid] == false)SendClientMessage(playerid,0x000000,"{FFFFFF}Du musst die Taste {FF0000}gedrückt {FFFFFF}halten um den Motor zu starten!"); KillTimer(motortimer[vid]); }}return 1;}
was ist falsch
sry ka wie das untereinander geht
Falls es stört hier pastebin link
http://pastebin.com/p31fvT8d