/motor Befehl Funktioniert nicht

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link

  • C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(24805) : warning 204: symbol is assigned a value that is never used: "cmd"
    C:\Users\***\DesktopOrdner\gamemodes\*****.pwn(24859) : warning 209: function "cmd_rentvehdel" should return a value
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : warning 219: local variable "GetPlayerVehicleID" shadows a variable at a preceding level
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : error 001: expected token: ";", but found "("
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : warning 215: expression has no effect
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : error 017: undefined symbol "string"
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : warning 215: expression has no effect
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : error 001: expected token: ";", but found "]"
    C:\Users\***\Desktop\Ordner\gamemodes\*****.pwn(36378) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.





    COMMAND:motor(playerid,params[])
    {
    new GetPlayerVehicleID(playerid),string[128],Float:x,Float:y,Float:z,Vehicleid; //Hier ist der fehler.
    if(Spieler[playerid][pHealTime] != 0)return SendClientMessage(playerid,GRAU,"Du kannst während des Geschlechtsverkehr den Motor des Fahrzeuges nicht starten.");
    if(RepairAVehicle[vehicleid] == 1)return SendClientMessage(playerid,GRAU,"Dein Fahrzeug wird gerade repariert!");
    if(RefillVehicle[vehicleid] == 1)return SendClientMessage(playerid,GRAU,"Du tankst gerade!");
    if(vFahrzeug[vehicleid][Handbremse] == 1)return SendClientMessage(playerid,GRAU,"Bitte löse zu erst die Handbremse!");
    if(GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510)return SendClientMessage(playerid,GRAU,"Das Fahrzeug hat keinen Motor.");
    if(MotorDown[vehicleid] != 0)return SendClientMessage(playerid,WEISS,"Das Fahrzeug ist kaputt. Rufe einen Abschlepper oder einen Kraftfahrzeugmechaniker.");
    if(vFahrzeug[vehicleid][Tank] <= 0.0)return SendClientMessage(playerid,GRAU,"Tank leer.");
    else if(Motor[vehicleid] == false)
    {
    if(vFahrzeug[vehicleid][Carbomb] != 1)
    {
    Motor[vehicleid] = true;
    KillTimer(vFahrzeug[vehicleid][VehicleEngineTimer]);
    vFahrzeug[vehicleid][VehicleEngineTimer] = SetTimerEx("VehicleEngine",VehicleInfo[GetVehicleModel(vehicleid)-400][vEngineStartInSek]*1000,0,"ii",playerid,vehicleid);
    GameTextForPlayer(playerid,"~w~Motor~g~ wird gestartet",VehicleInfo[GetVehicleModel(vehicleid)-400][vEngineStartInSek]*1000,6);
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SetPlayerHealth(playerid, 0);
    vFahrzeug[vehicleid][Carbomb] = 0;
    new randompos = random(20),randexploderadius = random(40)+10;
    new Float:vehx, Float:vehy, Float:vehz;
    GetVehiclePos(vehicleid,vehx,vehy,vehz);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),true);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    ForEachPlayer(i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    if(isPlayerInFrakt(i,8))
    {
    format(string,sizeof(string),"Detonation: Eine in einem/r %s verbaute Autobombe ist detoniert.",VehicleDefinations[GetVehicleModel(vehicleid)-400]);
    SendClientMessage(i,GELB,string);
    }
    }
    }
    return 1;
    }
    }
    else if(Motor[vehicleid] == true)
    {
    if(vFahrzeug[vehicleid][Carbomb] != 1)
    {
    KillTimer(vFahrzeug[vehicleid][VehicleEngineTimer]);
    GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Motor[vehicleid] = false;
    GameTextForPlayer(playerid,"~w~Motor ~r~ausgeschaltet",2000,6);
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SetPlayerHealth(playerid, 0);
    vFahrzeug[vehicleid][Carbomb] = 0;
    new randompos = random(20),randexploderadius = random(40)+10;
    new Float:vehx, Float:vehy, Float:vehz;
    GetVehiclePos(vehicleid,vehx,vehy,vehz);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),true);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    CreateExplosion(vehx+randompos,vehy+randompos,vehz+randompos,7,randexploderadius);
    AddFire(vehx+randompos,vehy+randompos,vehz+randompos,GetPlayerVirtualWorld(playerid),false);
    randexploderadius = random(30)+10;
    randompos = random(10);
    ForEachPlayer(i)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    if(isPlayerInFrakt(i,8))
    {
    format(string,sizeof(string),"Detonation: Eine in einem/r %s verbaute Autobombe ist detoniert.",VehicleDefinations[GetVehicleModel(vehicleid)-400]);
    SendClientMessage(i,GELB,string);
    }
    }
    }
    return 1;
    }
    }
    return 1;
    }


    Bitte um Hilfe.