RegisterSystem Errors

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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 liebe Community.


    Ich bin ein anfänger in Sachen pawno, kenne mich aber schon gut in Java etc aus.
    Ich kriege die ganze zeit 4 Errors, wo ich nicht weiß wieso die kommen.


    Code:



    #include <a_samp>
    #include <Dini>
    #include <md5>


    //enums
    enum SpielerDaten
    {
    passwort,
    geld,
    level
    }


    new playerD[MAX_PLAYERS] [SpielerDaten];


    //defines
    #define DIALOG_REGISTER 1
    #define DIALOG_LOGIN 2


    //Farben


    #define ROT 0xFF2800FF
    #define Gruen 0x19FF00FF
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x0000BBAA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_BRIGHTRED 0xFF0000AA
    #define COLOR_INDIGO 0x4B00B0AA
    #define COLOR_VIOLET 0x9955DEEE
    #define COLOR_LIGHTRED 0xFF99AADD
    #define COLOR_SEAGREEN 0x00EEADDF
    #define COLOR_GRAYWHITE 0xEEEEFFC4
    #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
    #define COLOR_GREENISHGOLD 0xCCFFDD56
    #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
    #define COLOR_NEUTRALBLUE 0xABCDEF01
    #define COLOR_LIGHTCYAN 0xAAFFCC33
    #define COLOR_LEMON 0xDDDD2357
    #define COLOR_MEDIUMBLUE 0x63AFF00A
    #define COLOR_NEUTRAL 0xABCDEF97
    #define COLOR_BLACK 0x00000000
    #define COLOR_NEUTRALGREEN 0x81CFAB00
    #define COLOR_DARKGREEN 0x12900BBF
    #define COLOR_LIGHTGREEN 0x24FF0AB9
    #define COLOR_DARKBLUE 0x300FFAAB
    #define COLOR_BLUEGREEN 0x46BBAA00
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_PURPLE 0x800080AA
    #define COLOR_GRAD1 0xB4B5B7FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_RED1 0xFF0000AA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_BROWN 0x993300AA
    #define COLOR_CYAN 0x99FFFFAA
    #define COLOR_TAN 0xFFFFCCAA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_KHAKI 0x999900AA
    #define COLOR_LIME 0x99FF00AA
    #define COLOR_SYSTEM 0xEFEFF7AA
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD4 0xD8D8D8FF
    #define COLOR_GRAD6 0xF0F0F0FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD3 0xCBCCCEFF
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD1 0xB4B5B7FF



    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetSpawnInfo(playerid,0,0,1763.2980,-1896.6514,13.5625,276.7087,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if dini_Exists(Spieler)
    }

    ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich mit deinem Passwort ein","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Wilkommen. Bitte gebe ein gewünschtes Passwort ein, um Spielen zu können!", "Weiter","Abbrechen");
    return 1;
    }
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_LOGIN)
    {
    if(response == 1)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if(strlen(inputtext) > 9)
    {
    if(strcmp(inputtext,dini_Get(Spieler,"Passwort"),false) == 0)
    {
    SendClientMessage(playerid,Gruen,"Du hast dich erfolgreich eingeloggt! Viel Spaß wünscht dir das Team!");
    loadPlayer(playerid);
    return 1;
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Das Passwort war falsch!\nGib dein Passwort ein:","Login","Abbrechen");
    return 1;
    }
    }
    SendClientMessage(playerid,ROT,"Das Passwort war falsch!");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Das Passwort war falsch!\nGib dein Passwort ein:","Login","Abbrechen");
    Kick(playerid);
    return 1;
    }
    if(response == 0)
    {
    Kick(playerid);
    }
    return 1;
    }


    if(dialogid == DIALOG_REGISTER)
    {
    if(response == 1)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    dini_Create(Spieler);
    dini_Set(Spieler,"Passwort",inputtext);
    dini_IntSet(Spieler,"Geld",50000);
    dini_IntSet(Spieler,"Level",1);
    SendClientMessage(playerid,Gruen,"Du hast dich erfolgreich registriert!");
    loadPlayer(playerid);
    return 1;
    }
    if(response == 0)
    {
    SendClientMessage(playerid,ROT,"Du hast auf abbrechen geklickt und wurdest zur vorsicht gekickt!");
    Kick(playerid);
    return 1;
    }
    return 1;
    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }


    stock loadPlayer(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    playerD[playerid][geld] = dini_Int(Spieler,"Geld");
    playerD[playerid][level = dini_Int(Spieler,"Level");
    setPlayerMoney(playerid,playerD[playerid][geld]);
    SetPlayerScore(playerid,playerD[playerid][level]);
    return 1;
    }


    stock setPlayerMoney(playerid, betrag)
    {
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,betrag);
    return 1;
    }


    stock getPlayerName(playerid)
    {
    new name[128];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
    }



    Errors:


    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(112) : error 001: expected token: "*then", but found "}"
    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(112) : error 029: invalid expression, assumed zero
    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(112 -- 114) : warning 215: expression has no effect
    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(114) : error 001: expected token: ";", but found "-identifier-"
    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(114) : fatal error 107: too many error messages on one line


    Ich hoffe ihr könnt mir helfen.

    Ich würde so gerne die Welt verändern, doch Gott gibt mir den Quellcode nicht.

  • von
    public OnPlayerConnect(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if dini_Exists(Spieler)
    }

    ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich mit deinem Passwort ein","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Wilkommen. Bitte gebe ein gewünschtes Passwort ein, um Spielen zu können!", "Weiter","Abbrechen");
    return 1;
    }
    return 1;
    }


    zu:
    public OnPlayerConnect(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if(dini_Exists(Spieler)) ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich mit deinem Passwort ein","Login","Abbrechen");
    else ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Wilkommen. Bitte gebe ein gewünschtes Passwort ein, um Spielen zu können!", "Weiter","Abbrechen");
    return 1;
    }


    L.G.

  • KingMS
    Danke,
    habe einige fehler selber gefunden und jetzt bleibt nurnoch einer:


    Code:

    #include <a_samp>
    #include <Dini>
    #include <md5>


    //enums
    enum SpielerDaten
    {
    passwort,
    geld,
    level
    }


    new playerD[MAX_PLAYERS] [SpielerDaten];


    //defines
    #define DIALOG_REGISTER 1
    #define DIALOG_LOGIN 2


    //Farben


    #define ROT 0xFF2800FF
    #define Gruen 0x19FF00FF
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLUE 0x0000BBAA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_BRIGHTRED 0xFF0000AA
    #define COLOR_INDIGO 0x4B00B0AA
    #define COLOR_VIOLET 0x9955DEEE
    #define COLOR_LIGHTRED 0xFF99AADD
    #define COLOR_SEAGREEN 0x00EEADDF
    #define COLOR_GRAYWHITE 0xEEEEFFC4
    #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
    #define COLOR_GREENISHGOLD 0xCCFFDD56
    #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
    #define COLOR_NEUTRALBLUE 0xABCDEF01
    #define COLOR_LIGHTCYAN 0xAAFFCC33
    #define COLOR_LEMON 0xDDDD2357
    #define COLOR_MEDIUMBLUE 0x63AFF00A
    #define COLOR_NEUTRAL 0xABCDEF97
    #define COLOR_BLACK 0x00000000
    #define COLOR_NEUTRALGREEN 0x81CFAB00
    #define COLOR_DARKGREEN 0x12900BBF
    #define COLOR_LIGHTGREEN 0x24FF0AB9
    #define COLOR_DARKBLUE 0x300FFAAB
    #define COLOR_BLUEGREEN 0x46BBAA00
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_DARKRED 0x660000AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_PURPLE 0x800080AA
    #define COLOR_GRAD1 0xB4B5B7FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_RED1 0xFF0000AA
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_BROWN 0x993300AA
    #define COLOR_CYAN 0x99FFFFAA
    #define COLOR_TAN 0xFFFFCCAA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_KHAKI 0x999900AA
    #define COLOR_LIME 0x99FF00AA
    #define COLOR_SYSTEM 0xEFEFF7AA
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD4 0xD8D8D8FF
    #define COLOR_GRAD6 0xF0F0F0FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD3 0xCBCCCEFF
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD1 0xB4B5B7FF



    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetSpawnInfo(playerid,0,0,1763.2980,-1896.6514,13.5625,276.7087,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if (dini_Exists(Spieler))
    {


    ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich mit deinem Passwort ein","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Wilkommen. Bitte gebe ein gewünschtes Passwort ein, um Spielen zu können!", "Weiter","Abbrechen");
    return 1;
    }
    return 1;


    }
    }



    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_LOGIN)
    {
    if(response == 1)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if(strlen(inputtext) > 9)
    {
    if(strcmp(inputtext,dini_Get(Spieler,"Passwort"),false) == 0)
    {
    SendClientMessage(playerid,Gruen,"Du hast dich erfolgreich eingeloggt! Viel Spaß wünscht dir das Team!");
    loadPlayer(playerid);
    return 1;
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Das Passwort war falsch!\nGib dein Passwort ein:","Login","Abbrechen");
    return 1;
    }
    }

    SendClientMessage(playerid,ROT,"Das Passwort war falsch!");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Das Passwort war falsch!\nGib dein Passwort ein:","Login","Abbrechen");
    Kick(playerid);
    return 1;
    }
    if(response == 0)
    {
    Kick(playerid);
    }
    return 1;
    }


    if(dialogid == DIALOG_REGISTER)
    {
    if(response == 1)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    dini_Create(Spieler);
    dini_Set(Spieler,"Passwort",inputtext);
    dini_IntSet(Spieler,"Geld",50000);
    dini_IntSet(Spieler,"Level",1);
    SendClientMessage(playerid,Gruen,"Du hast dich erfolgreich registriert!");
    loadPlayer(playerid);
    return 1;
    }
    if(response == 0)
    {
    SendClientMessage(playerid,ROT,"Du hast auf abbrechen geklickt und wurdest zur vorsicht gekickt!");
    Kick(playerid);
    return 1;
    }
    return 1;
    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }


    stock loadPlayer(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    playerD[playerid][geld] = dini_Int(Spieler,"Geld");
    playerD[playerid][level] = dini_Int(Spieler,"Level");
    setPlayerMoney(playerid,playerD[playerid][geld]);
    SetPlayerScore(playerid,playerD[playerid][level]);
    return 1;
    }


    stock setPlayerMoney(playerid, betrag)
    {
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,betrag);
    return 1;
    }


    stock getPlayerName(playerid)
    {
    new name[128];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
    }


    fehler:


    C:\Users\Finn\Desktop\GTA San Andreas\Server\gamemodes\RL-Script.pwn(124) : error 054: unmatched closing brace ("}")

    Ich würde so gerne die Welt verändern, doch Gott gibt mir den Quellcode nicht.

  • public OnPlayerConnect(playerid)
    {
    new Spieler[128];
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",getPlayerName(playerid));
    if (dini_Exists(Spieler))
    {


    ShowPlayerDialog(playerid, DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich mit deinem Passwort ein","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Wilkommen. Bitte gebe ein gewünschtes Passwort ein, um Spielen zu können!", "Weiter","Abbrechen");
    return 1;
    }
    return 1;
    }