6 Errors und 1 Warning

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
  • Hallo,
    Ich brauchte schon wieder hilfe von ein guten Profi.
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(4156) : error 017: undefined symbol "PlayerDisconnect"
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(4350) : error 017: undefined symbol "b_PlayerDisconnect"
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(12814) : error 017: undefined symbol "Objekte"
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(12814) : warning 215: expression has no effect
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(12814) : error 001: expected token: ";", but found "]"
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(12814) : error 029: invalid expression, assumed zero
    C:\Users\Sebastian\Documents\ICQ\489636529\ReceivedFiles\374544872 Bill Gates\LOH\gamemodes\Neuer Ordner\Sebi4 - Kopie - Kopie - Kopie (2).pwn(12814) : fatal error 107: too many error messages on one line


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



    6 Errors.
    Kann mir jemand helfen?


    MFG SonnY

  • Also ich hab von opa denn neuer Streamer reingemacht.
    Hier die Zeilen:
    1. Error:
    undefined symbol "PlayerDisconnect"




    public OnPlayerDisconnect(playerid, reason)
    {
    new string[150];
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,sendername,sizeof(sendername));
    PlayerDisconnect(playerid);
    OnPlayerCarUpdate(playerid);
    MoneySpam[playerid] = 0;
    DestroyObject(Sperre[playerid][0]);
    DestroyObject(Sperre[playerid][1]);
    DestroyObject(Sperre[playerid][2]);
    DestroyObject(Sperre[playerid][3]);
    DestroyObject(Sperre[playerid][4]);
    Sperrebit[playerid]=0;
    InCargo[playerid] = 0; InLevi[playerid] = 0;
    DestroyPickup(TotenKopf[playerid][0]);
    if(reason == 1)
    {
    if(PlayerCuffed[playerid] >= 1)
    {
    OfflineFlucht[playerid] = 1;
    format(string,sizeof(string),"Warnung %s ist Gefesselt Offline gegangen!(Offline-Flucht))",sendername);
    ABroadCast(COLOR_YELLOW,string,1);
    //mepmöp
    }
    }


    2. Error:
    undefined symbol "b_PlayerDisconnect"




    }
    if(TransportDuty[playerid] == 1)
    {
    TaxiDrivers -= 1;
    }
    else if(TransportDuty[playerid] == 2)
    {
    BusDrivers -= 1;
    }
    if(PlayerInfo[playerid][pJob] == 11)
    {
    if(JobDuty[playerid] == 1) { Medics -= 1; }
    }
    else if(PlayerInfo[playerid][pJob] == 7)
    {
    if(JobDuty[playerid] == 1) { Mechanics -= 1; }
    }
    if (PlayerInfo[playerid][pRoadblock] != 0)
    {
    RemoveRoadblock(playerid);
    }


    b_PlayerDisconnect(playerid);

    return 1;
    }


    3 Fehler und 1 Warning:
    undefined symbol "Objekte"
    expected token: ";", but found "]"
    invalid expression, assumed zero
    fatal error 107: too many error messages on one line








    public OnGameModeExit()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    OnPlayerCarUpdate(i);
    OnPlayerUpdate(i);
    gPlayerLogged[i] = 0;
    }
    }
    for(new i = 0; i < AUTOHAUSER; i++)
    {
    DestroyPickup(Dtc_Info[i]);
    }
    // DestroyPickup(Motorcross);
    DestroyPickup(Motorcrossexit);
    // DestroyPickup(Derby);
    DestroyPickup(Derbyexit);
    // DestroyPickup(DerbyBesucher);
    // DestroyPickup(DerbyBesucherexit);
    DestroyPickup(Stadion);
    DestroyPickup(Rundenrennenexit);
    // DestroyPickup(Kickstart);
    DestroyPickup(Kickstartexit);
    DestroyVehicle(race1[1]);
    DestroyVehicle(race1[2]);
    DestroyVehicle(race1[3]);
    DestroyVehicle(race1[4]);
    DestroyVehicle(race1[5]);
    DestroyVehicle(race1[6]);
    DestroyVehicle(race1[7]);
    DestroyVehicle(race1[8]);
    DestroyVehicle(race1[9]);
    DestroyVehicle(race1[10]);
    DestroyVehicle(race2[1]);
    DestroyVehicle(race2[2]);
    DestroyVehicle(race2[3]);
    DestroyVehicle(race2[4]);
    DestroyVehicle(race2[5]);
    DestroyVehicle(race2[6]);
    DestroyVehicle(race2[7]);
    DestroyVehicle(race2[8]);
    DestroyVehicle(race2[9]);
    DestroyVehicle(race2[10]);
    DestroyVehicle(race2[11]);
    DestroyVehicle(race2[12]);
    DestroyVehicle(race2[13]);
    DestroyVehicle(race2[14]);
    DestroyVehicle(race2[15]);
    DestroyVehicle(race2[16]);
    DestroyVehicle(race2[17]);
    DestroyVehicle(race2[18]);
    DestroyVehicle(race2[19]);
    DestroyVehicle(race2[20]);
    DestroyVehicle(race4[1]);
    DestroyVehicle(race4[2]);
    DestroyVehicle(race4[3]);
    DestroyVehicle(race4[4]);
    DestroyVehicle(race4[5]);
    DestroyVehicle(race4[6]);
    DestroyVehicle(race4[7]);
    DestroyVehicle(race4[8]);
    DestroyVehicle(race4[9]);
    DestroyVehicle(race4[10]);
    DestroyVehicle(race3[1]);
    DestroyVehicle(race3[2]);
    DestroyVehicle(race3[3]);
    DestroyVehicle(race3[4]);
    DestroyVehicle(race3[5]);
    DestroyVehicle(race3[6]);
    DestroyVehicle(race3[7]);
    DestroyVehicle(race3[8]);
    DestroyVehicle(race3[9]);
    DestroyVehicle(race3[10]);

    for(new o=0; o<700; o++)
    {
    if(Objekte[o][exist] == 1)
    {
    b_DestroyObject(o);
    }
    }
    //b_GameModeExit();
    return 1;
    }
    public OnVehicleRespray(playerid,vehicleid,color1,color2)
    {
    for(new x = 0; x < MaxVeh; x++)
    {