Was ist da Falsch ?

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\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : warning 215: expression has no effect
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 001: expected token: ";", but found ")"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(52) : 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 OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }


    Danke im Vor raus

  • Wie ScriptingFreak schon sagte poste mal paar zeilen Darüber einen Quellcode:


    Denn hier:


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }


    Erkenne ich keinen Fehler

  • #include <a_samp>
    #include <dini>


    #define BLAU 0x0087FFFF


    new SHenter;
    new SHexit;


    #define DIALOG_REGISTER
    #define DIALOG_LOGIN


    main()
    {
    print("\n----------------------------------");
    print("German Roleplay v1.0.0");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    UsePlayerPedAnims();
    SHexit=CreatePickup(1559,1,390.1157,173.8773,1008.3828);
    SHenter=CreatePickup(1559,1,1481.1228,-1772.3123,18.7958);


    DisableInteriorEnterExits();
    SetGameModeText("German Roleplay");
    AddPlayerClass(0,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos
    AddPlayerClass(1,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos

    //********************************************Autos*********************************************
    AddStaticVehicle(541,1663.1593,-2313.5281,13.0880,87.8235,13,8); // Testauto1
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,1663.3906,-2332.3948,13.5469); // Position
    SetPlayerFacingAngle(playerid,356.3918);
    SetPlayerCameraPos(playerid,1663.3630,-2330.0259,13.5469);
    SetPlayerCameraLookAt(playerid,1663.3906,-2332.3948,13.5469);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Jetzt habe ich 8 Errors


    Da der ganze Gamemode


    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(253) : error 017: undefined symbol "DIALOG_STYLE_IMPUT"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(258) : error 017: undefined symbol "Register"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(259) : error 001: expected token: ";", but found "return"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(262) : warning 217: loose indentation
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : warning 217: loose indentation
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(265) : error 004: function "OnPlayerClickPlayer" is not implemented
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : warning 225: unreachable code
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : error 029: invalid expression, assumed zero
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(270) : error 017: undefined symbol "Register"
    C:\Users\TheDivine\Desktop\Server\gamemodes\GermanRoleplay.pwn(274) : error 030: compound statement not closed at the end of file (started at line 240)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Errors.


    ___________________________________________________________


    #include <a_samp>
    #include <dini>


    #define BLAU 0x0087FFFF


    new SHenter;
    new SHexit;


    #define DIALOG_REGISTER 0
    #define DIALOG_LOGIN 1


    main()
    {
    print("\n----------------------------------");
    print("German Roleplay v1.0.0");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    UsePlayerPedAnims();
    SHexit=CreatePickup(1559,1,390.1157,173.8773,1008.3828);
    SHenter=CreatePickup(1559,1,1481.1228,-1772.3123,18.7958);


    DisableInteriorEnterExits();
    SetGameModeText("German Roleplay");
    AddPlayerClass(0,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos
    AddPlayerClass(1,1663.3906,-2332.3948,13.5469,356.3918,0,0,0,0,0,0); // Pos

    //********************************************Autos*********************************************
    AddStaticVehicle(541,1663.1593,-2313.5281,13.0880,87.8235,13,8); // Testauto1
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,1663.3906,-2332.3948,13.5469); // Position
    SetPlayerFacingAngle(playerid,356.3918);
    SetPlayerCameraPos(playerid,1663.3630,-2330.0259,13.5469);
    SetPlayerCameraLookAt(playerid,1663.3906,-2332.3948,13.5469);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    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(cmdtext,"/kill",true)==0)
    {
    SetPlayerHealth(playerid,0);
    return 1;
    }
    if(strcmp(cmdtext,"/restart",true)==0)
    {
    SendRconCommand("gmx");
    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)
    {
    if(pickupid==SHenter)
    {
    SetPlayerPos(playerid,388.1541,173.6130,1008.3828);
    SetPlayerInterior(playerid,3);
    }
    if(pickupid==SHexit)
    {
    SetPlayerPos(playerid,1481.1545,-1768.9612,18.7958);
    SetPlayerFacingAngle(playerid,356.0003);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    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_REGISTER)
    {
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_IMPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register(playerid,inputtext)
    return 1;
    }
    }
    return 1;
    }


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


    stock Register(playerid,key[])
    {
    return 1;
    }


  • Du hast hier die Klammern nicht geschlossen:


    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_IMPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register(playerid,inputtext)
    return 1;
    }

  • public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib Bitte das gewünschte Paswort ein","Register","Abbrechen");
    return 1;
    }


    Die Klammern waren unnötig, füg es mal so ein

    ehm. Administration StateV ~ Domi