Brauche bitte dringend HILFE

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
  • allso ich habe 10 errors und weiß nicht weiter bitte helft mir




    C:\Users\Marco\Desktop\SAMP\0.3c\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
    C:\Users\Marco\Desktop\Backup2.pwn(5050) : error 004: function "OOCOFF" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : error 079: inconsistent return types (array & non-array)
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : error 004: function "Streamer_OnPlayerDisconnect" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5059) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5061) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5063) : error 012: invalid function call, not a valid address
    C:\Users\Marco\Desktop\Backup2.pwn(5063) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5063) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5063) : fatal error 107: too many error messages on one line


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



    10 Errors.




    das steht in den zeilen



    if(JackpotFallen)
    {
    new rand = random(10000); rand += 5789;
    Jackpot = rand;

    format(string, sizeof(string), "Lotterie News: Der neue Jackpot startet mit $%d.", Jackpot);

    }
    else
    {
    new rand = random(5000); rand += 2158;
    Jackpot += rand;

    format(string, sizeof(string), "Lotterie News: Der Jackpot wurde auf $%d erhöht.", Jackpot);
    OOCOFF(COLOR_WHITE, string);
    return 1;
    }


    //------------------------------------------------------------------------------------------------------
    public OnPlayerDisconnect(playerid, reason)
    {
    new textreason[64];
    new plname[24];
    GetPlayerName(playerid, plname, sizeof(plname));
    new playersip[24];
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    new string2[128];
    if(PlayerInfo(playerid)(pAdminDuty) == 1)
    {


    MFG galer09


    //edit Text 4x
    //edit PWN Text

  • if(PlayerInfo(playerid)(pAdminDuty) == 1) {


    das müsste eiglich so:


    if(PlayerInfo[playerid][pAdminDuty] ==1) {


    @ Maho.... TOLLER SPAM


    Hmm .... xD

  • public OnPlayerDisconnect(playerid, reason)
    {
    new textreason[64];
    new plname[24];
    GetPlayerName(playerid, plname, sizeof(plname));
    new playersip[24];
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    new string2[128];
    if(PlayerInfo[playerid][pAdminDuty] == 1)
    {
    SafeResetPlayerWeapons(playerid);
    }


    Schreib ob es geht, wenn nicht bitte mehr Zeilen und neue Fehlermeldung

  • C:\Users\Marco\Desktop\SAMP\0.3c\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
    C:\Users\Marco\Desktop\Backup2.pwn(5050) : error 004: function "OOCOFF" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : error 079: inconsistent return types (array & non-array)
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5055) : error 004: function "Streamer_OnPlayerDisconnect" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5059) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5061) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5063) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5065) : error 004: function "SafeResetPlayerWeapons" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5067) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5069) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5070) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5072) : error 017: undefined symbol "playerid"
    C:\Users\Marco\Desktop\Backup2.pwn(5072) : error 004: function "SafeGivePlayerWeapon" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5072) : error 001: expected token: ")", but found ";"
    C:\Users\Marco\Desktop\Backup2.pwn(5072) : fatal error 107: too many error messages on one line


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



    15 Errors.



    public Lotto(number)
    {
    new JackpotFallen = 0;
    new string[128];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Lotterie News: Die heutige Gewinnnummer: %d.", number);
    format(string, sizeof(string), "Lotterie News: ~n~ Heutige Nummer: ~p~ %d", number);
    GameTextForAll(string, 4000, 6);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLottoNr] > 0)
    {
    if(PlayerInfo[i][pLottoNr] == number)
    {
    JackpotFallen = 1;
    GetPlayerName(i, winner, sizeof(winner));
    format(string, sizeof(string), "Lotterie News: %s hat den Jackpot von $%d gewonnen!", winner, Jackpot);

    format(string, sizeof(string), "* Du gewinnst $%d mit deinem Ticket!", Jackpot);
    SendClientMessage(i, COLOR_WHITE, string);
    format(string, sizeof(string), "~g~~h~~h~Gewinnt die Lotterie!!! ~n~~g~$%d !! ~n~~n~~n~~p~Glueckwunsch!!!!", Jackpot);
    GameTextForPlayer(i, string, 5000, 3);
    //ConsumingMoney[i] = 1;

    }
    else
    {
    SendClientMessage(i, COLOR_WHITE, "Leider hast du diesmal nichts gewonnen, viel Glück weiterhin!");
    }
    }
    PlayerInfo[i][pLottoNr] = 0;
    }
    }
    if(JackpotFallen)
    {
    new rand = random(10000); rand += 5789;
    Jackpot = rand;

    format(string, sizeof(string), "Lotterie News: Der neue Jackpot startet mit $%d.", Jackpot);

    }
    else
    {
    new rand = random(5000); rand += 2158;
    Jackpot += rand;

    format(string, sizeof(string), "Lotterie News: Der Jackpot wurde auf $%d erhöht.", Jackpot);
    OOCOFF(COLOR_WHITE, string);
    return 1;
    }


    //------------------------------------------------------------------------------------------------------
    public OnPlayerDisconnect(playerid, reason)
    {
    new textreason[64];
    new plname[24];
    GetPlayerName(playerid, plname, sizeof(plname));
    new playersip[24];
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    new string2[128];
    if(PlayerInfo[playerid][pAdminDuty] == 1)
    {
    SafeResetPlayerWeapons(playerid);
    }
    if(Searching[playerid] == 1)
    {
    RemovePlayerMapIcon(playerid, 500 + playerid);
    Searching[playerid] = 0;
    }
    if(Tazer[playerid] == 1) { (SafeGivePlayerWeapon(playerid, 24, PreTazerAmmo[playerid]); }
    Delete3DTextLabel(DutyLabel(playerid));
    gActivePlayers[playerid]--;
    numplayers--;


    //edit text

  • Ich glaube es liegt an dem Lottoteil. Versuchs mal so
    public Lotto(number)
    {
    new JackpotFallen = 0;
    new string[128];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Lotterie News: Die heutige Gewinnnummer: %d.", number);
    OOCOff(COLOR_WHITE, string);
    format(string, sizeof(string), "Lotterie News: ~n~ Heutige Nummer: ~p~ %d", number);
    GameTextForAll(string, 4000, 6);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLottoNr] > 0)
    {
    if(PlayerInfo[i][pLottoNr] == number)
    {
    JackpotFallen = 1;
    GetPlayerName(i, winner, sizeof(winner));
    format(string, sizeof(string), "Lotterie News: %s hat den Jackpot von $%d gewonnen!", winner, Jackpot);
    OOCOff(TEAM_CYAN_COLOR, string);
    format(string, sizeof(string), "* Du gewinnst $%d mit Deinem Lottolos!", Jackpot);
    SendClientMessage(i, COLOR_WHITE, string);
    format(string, sizeof(string), "~g~~h~~h~Gewinnt die Lotterie!!! ~n~~g~$%d !! ~n~~n~~n~~p~Glueckwunsch!!!!", Jackpot);
    GameTextForPlayer(i, string, 5000, 3);
    //ConsumingMoney[i] = 1;
    SafeGivePlayerMoney(i, Jackpot);
    }
    else
    {
    SendClientMessage(i, COLOR_WHITE, "Leider hast Du diesmal nichts gewonnen!");
    }
    }
    PlayerInfo[i][pLottoNr] = 0;
    }
    }
    if(JackpotFallen)
    {
    new rand = random(10000); rand += 5789;
    Jackpot = rand;
    SaveStuff();
    format(string, sizeof(string), "Lotterie News: Der neue Jackpot startet mit $%d.", Jackpot);
    OOCOff(COLOR_WHITE, string);
    }
    else
    {
    new rand = random(5000); rand += 2158;
    Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "Lotterie News: Der Jackpot wurde auf $%d erhöht.", Jackpot);
    OOCOff(COLOR_WHITE, string);
    }
    return 1;
    }


    Edit
    Schreibe ob es geht

  • so das sind die errors


    C:\Users\Marco\Desktop\SAMP\0.3c\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
    C:\Users\Marco\Desktop\Backup2.pwn(5007) : error 017: undefined symbol "OOCOff"
    C:\Users\Marco\Desktop\Backup2.pwn(5021) : error 017: undefined symbol "OOCOff"
    C:\Users\Marco\Desktop\Backup2.pwn(5041) : error 004: function "SaveStuff" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5043) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5043) : error 017: undefined symbol "OOCOff"
    C:\Users\Marco\Desktop\Backup2.pwn(5049) : error 004: function "SaveStuff" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : warning 217: loose indentation
    C:\Users\Marco\Desktop\Backup2.pwn(5051) : error 017: undefined symbol "OOCOff"
    C:\Users\Marco\Desktop\Backup2.pwn(5074) : error 012: invalid function call, not a valid address
    C:\Users\Marco\Desktop\Backup2.pwn(5074) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5074) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5074) : fatal error 107: too many error messages on one line


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



    10 Errors.


    so und die zeilen


    public Lotto(number)
    {
    new JackpotFallen = 0;
    new string[128];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Lotterie News: Die heutige Gewinnnummer: %d.", number);
    OOCOff(COLOR_WHITE, string);
    format(string, sizeof(string), "Lotterie News: ~n~ Heutige Nummer: ~p~ %d", number);
    GameTextForAll(string, 4000, 6);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerInfo[i][pLottoNr] > 0)
    {
    if(PlayerInfo[i][pLottoNr] == number)
    {
    JackpotFallen = 1;
    GetPlayerName(i, winner, sizeof(winner));
    format(string, sizeof(string), "Lotterie News: %s hat den Jackpot von $%d gewonnen!", winner, Jackpot);
    OOCOff(TEAM_CYAN_COLOR, string);
    format(string, sizeof(string), "* Du gewinnst $%d mit Deinem Lottolos!", Jackpot);
    SendClientMessage(i, COLOR_WHITE, string);
    format(string, sizeof(string), "~g~~h~~h~Gewinnt die Lotterie!!! ~n~~g~$%d !! ~n~~n~~n~~p~Glueckwunsch!!!!", Jackpot);
    GameTextForPlayer(i, string, 5000, 3);
    //ConsumingMoney[i] = 1;
    GivePlayerMoney(i, Jackpot);
    }
    else
    {
    SendClientMessage(i, COLOR_WHITE, "Leider hast Du diesmal nichts gewonnen!");
    }
    }
    PlayerInfo[i][pLottoNr] = 0;
    }
    }
    if(JackpotFallen)
    {
    new rand = random(10000); rand += 5789;
    Jackpot = rand;
    SaveStuff();
    format(string, sizeof(string), "Lotterie News: Der neue Jackpot startet mit $%d.", Jackpot);
    OOCOff(COLOR_WHITE, string);
    }
    else
    {
    new rand = random(5000); rand += 2158;
    Jackpot += rand;
    SaveStuff();
    format(string, sizeof(string), "Lotterie News: Der Jackpot wurde auf $%d erhöht.", Jackpot);
    OOCOff(COLOR_WHITE, string);
    }
    return 1;
    }


    //------------------------------------------------------------------------------------------------------
    public OnPlayerDisconnect(playerid, reason)
    {
    new textreason[64];
    new plname[24];
    GetPlayerName(playerid, plname, sizeof(plname));
    new playersip[24];
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    new string2[128];
    if(PlayerInfo[playerid][pAdminDuty] == 1)
    {
    ResetPlayerWeapons(playerid);
    }
    if(Searching[playerid] == 1)
    {
    RemovePlayerMapIcon(playerid, 500 + playerid);
    Searching[playerid] = 0;
    }
    if(Tazer[playerid] == 1) (GivePlayerWeapon(playerid, 24, PreTazerAmmo(playerid));
    {
    Delete3DTextLabel(DutyLabel(playerid));
    gActivePlayers[playerid]--;
    numplayers--;
    RemovePlayerMapIcon(playerid, 37 + playerid);
    TextDrawDestroy(Textdraw54[playerid]);
    TextDrawDestroy(Textdraw53[playerid]);
    TextDrawDestroy(Textdraw52[playerid]);
    TextDrawDestroy(Textdraw51[playerid]);
    TextDrawDestroy(Textdraw49[playerid]);
    TextDrawDestroy(Textdraw42[playerid]);
    TextDrawDestroy(Textdraw41[playerid]);
    TextDrawDestroy(Textdraw40[playerid]);
    TextDrawDestroy(Textdraw39[playerid]);
    TextDrawDestroy(Textdraw1[playerid]);
    KillTimer(TrainTimer[playerid]);
    KillTimer(MoneyTimer[playerid]);
    if(IsPlayerInEVehicle[playerid] != 9999)
    }
    {
    new i = IsPlayerInEVehicle[playerid];
    Seats[i] --;
    }
    new string[24];
    new d,m,y,h,mi,s;
    getdate(y,m,d);


    bitte helft mir



    MFG galer09


    //edit text
    //edit pwn text

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Oben einfügen:
    forward OOCOff(farbe,const string[]);
    forward SaveStuff();
    Ganz unten Einfügen:
    public OOCOff(color,const string[])
    {
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(!gOoc[i])
    {
    SendClientMessage(i, color, string);
    }
    }
    }
    }
    public SaveStuff()
    {
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security);
    new File: file2 = fopen("stuff.ini", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
    } Welche Zeile ist 5074?
    (Copy & Paste von einem GF Edit, sollte jedoch die meisten Erros beheben)


    Zwischen Frage:
    Hast du es von einem GF via. Copy & Paste in ein anderes Script 'verschoben'?


    //Edit: (Folgende Zeile hinzugefügt & "quote" durch pwn ersetzt)
    Schon gefunden:
    RemovePlayerMapIcon(playerid, 500 + playerid);
    //Edit²:
    00C0ff Public hinzugefügt
    SaveStuff forward hinzugefügt

    Bin weg, Tschau! (Account kann gelöscht werden)

    2 Mal editiert, zuletzt von ISAPnP ()

  • so jetzt sind es noch 4 errors


    C:\Users\Marco\Desktop\Backup2.pwn(5007) : error 004: function "OOCOff" is not implemented
    C:\Users\Marco\Desktop\Backup2.pwn(5007) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5007) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\Backup2.pwn(5007) : 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.


    public Lotto(number)
    {
    new JackpotFallen = 0;
    new string[128];
    new winner[MAX_PLAYER_NAME];
    format(string, sizeof(string), "Lotterie News: Die heutige Gewinnnummer: %d.", number);
    format(string, sizeof(string), "Lotterie News: ~n~ Heutige Nummer: ~p~ %d", number);
    GameTextForAll(string, 4000, 6);
    for(new i = 0; i < MAX_PLAYERS; i++)
    OOCOff(COLOR_WHITE,const string[]);
    {



    so und jetzt ??? ?( ?( ?( ?(


    BRAUCHE BITTE DRINGEND HILFE!!!!


    kann denn keiner helfen!!??
    wie schön das keiner hilft egal //closed


    //edit text
    //edit² text
    //edit³ text


    vote for //closed
    MFG galer09