Hi Leute,
kann mir mal bitte einer schnell helfen?? Ich weiß einfach nicht was daran falsch ist!
#include <ocmd>
new motor[MAX_VEHICLES];new licht[MAX_VEHICLES];
ocmd:motor(playerid,params[]){ if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleSeat(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective; if(motor[vehicleid] == 1) { motor[vehicleid] = 0; SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); GameTextForPlayer(playerid, "MOTOR ~r~AUS", 2000, 1); } else if(motor[vehicleid] == 0) { motor[vehicleid] = 1; SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective); GameTextForPlayer(playerid, "MOTOR ~g~AN", 2000, 1); } } } return 1;}
ocmd:licht(playerid,params[]){ if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleSeat(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective; if(licht[vehicleid] == 1) { licht[vehicleid] = 0; SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); GameTextForPlayer(playerid, "LICHT ~r~AUS", 2000, 1); } else if(licht[vehicleid] == 0) { licht[vehicleid] = 1; SetVehicleParamsEx(vehicleid, engine, 1, alarm, doors, bonnet, boot, objective); GameTextForPlayer(playerid, "LICHT ~g~AN", 2000, 1); } } } return 1;}
schuldige wegen der formatieren habe es immer wieder versucht aber es ging einfach ne anders