4 Error beim Login System

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
  • Hey,


    Habe 4 Error im Login system.


    Hier:



    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : error 029: invalid expression, assumed zero
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : warning 215: expression has no effect
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : warning 215: expression has no effect
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : warning 215: expression has no effect
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : warning 215: expression has no effect
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : error 001: expected token: ";", but found ")"
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : error 029: invalid expression, assumed zero
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(10033) : 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.



    Hier die Zeilen:


    Function OnPlayerRequestClass(playerid, classid)
    {
    if(IsPlayerNPC(playerid))
    {
    SpawnPlayer(playerid);
    return 1;
    }
    if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    new str[128];// Ich machs alleine weiter :D
    format(str,sizeof str, "{FFFFFF}Willkommen auf {52D017}Fresh-Test!\n\n{FFFFFF}Dein Name: {48CCCD} %s {FFFFFF}\n\nBitte gib nun dein Passwort ein!", playerid);
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}Login", str, "Login", "Abbrechen");
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"{FFFFFF}Account","{FFFFFF}Du benötigst einen Account, um auf {52D017}Fresh Test-Server{FFFFFF} spielen zu können!","Erstellen","Abbrechen");
    }
    PlayerPlaySound(playerid, 1176, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pModel] = Peds[classid][0];
    SetPlayerTeamFromClass(playerid,classid);
    SetupPlayerForClassSelection(playerid);
    return 1;
    }

  • Function OnPlayerRequestClass(playerid, classid)
    {
    if(IsPlayerNPC(playerid))
    {
    SpawnPlayer(playerid);
    return 1;
    }
    if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    new str[128];// Ich machs alleine weiter :D
    format(str,sizeof str, "{FFFFFF}Willkommen auf {52D017}Fresh-Test!\n\n{FFFFFF}Dein Name: {48CCCD} %s {FFFFFF}\n\nBitte gib nun dein Passwort ein!", playerid);
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}Login", str, "Login", "Abbrechen");// die hier.
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"{FFFFFF}Account","{FFFFFF}Du benötigst einen Account, um auf {52D017}Fresh Test-Server{FFFFFF} spielen zu können!","Erstellen","Abbrechen");
    }
    PlayerPlaySound(playerid, 1176, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pModel] = Peds[classid][0];
    SetPlayerTeamFromClass(playerid,classid);
    SetupPlayerForClassSelection(playerid);
    return 1;
    }

  • danke nur noch 2 Fehler die ich nicht Kenne:



    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(20020) : error 075: input line too long (after substitutions)
    C:\Users\Mark\Desktop\Script\gamemodes\Release.pwn(20022) : warning 216: nested comment
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.



    Hier 20-22


    }
    Function OnPlayerRequestClass(playerid, classid)
    {

  • Ungetestet ....

    new str[128];
    new name[MAX_PLAYER_NAME];
    if(IsPlayerNPC(playerid))return SpawnPlayer(playerid);
    if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str), "{FFFFFF}Willkommen auf {52D017}Fresh-Test!\n{FFFFFF}Dein Name: {48CCCD} %s {FFFFFF}\n\nBitte gib nun dein Passwort ein!", name);
    ShowPlayerDialog(playerid, DIALOG_LOGIN,3, "{FFFFFF}Login", str, "Login", "Abbrechen");
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,3,"{FFFFFF}Account","{FFFFFF}Du benötigst einen Account, um auf {52D017}Fresh Test-Server{FFFFFF} spielen zu können!","Erstellen","Abbrechen");
    }
    PlayerPlaySound(playerid, 1176, 0.0, 0.0, 0.0); // Koordinaten ?
    PlayerInfo[playerid][pModel] = Peds[classid][0];
    SetPlayerTeamFromClass(playerid,classid);
    SetupPlayerForClassSelection(playerid);