Fast alle fehler Behoben weis aber nicht mehr weiter

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
  • Jo leute ich kiomm hier nicht mehr weiter pls help


    C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 001: expected token: ";", but found ")"
    C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\John\Desktop\SA-MP Server!\gamemodes\MeinScript.pwn(252) : 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.


    #include <a_samp>
    #include <dini>
    #define DIALOG_REGISTER 1
    #define DIALOG_LOGIN 2
    #define BLAU
    new EnterAmmuNation;
    new ExitAmmuNation;
    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by John");
    print("----------------------------------\n");
    }



    public OnGameModeInit()
    {
    ExitAmmuNation=CreatePickup(1559,1,296.8770,-111.7559,1001.5156);
    EnterAmmuNation=CreatePickup(1559,1,2495.3145,-1690.6173,14.7656);
    DisableInteriorEnterExits();
    SetGameModeText("Blank Script");
    AddPlayerClass(102,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
    AddPlayerClass(103,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
    AddPlayerClass(104,1905.7378,-1113.4419,26.6641,179.2016,26,9000,32,900,24,900); // B-Spawn
    AddPlayerClass(105,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
    AddPlayerClass(106,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn
    AddPlayerClass(107,2522.6594,-1678.5807,15.4970,89.6796,26,9000,32,900,24,900); // G-Spawn

    AddStaticVehicle(482,2517.2681,-1672.7186,14.2013,80.8716,16,16); // Gcar1
    AddStaticVehicle(487,2531.8638,-1677.5183,20.1067,88.5730,16,16); // Gcar2
    AddStaticVehicle(492,2508.4331,-1665.9999,13.1851,13.3850,16,16); // Gcar3
    AddStaticVehicle(492,2502.4177,-1657.4597,13.1913,54.4720,16,16); // Gcar4
    AddStaticVehicle(492,2491.3528,-1655.4596,13.1454,87.0854,16,16); // Gcar5
    AddStaticVehicle(492,2491.2363,-1682.9813,13.1202,92.8535,16,16); // Gcar6
    AddStaticVehicle(492,2504.2158,-1679.3121,13.1619,135.4726,16,16); // Gcar7
    AddStaticVehicle(534,2473.0803,-1693.3424,13.2392,359.1475,16,16); // Gcar8

    AddStaticVehicle(467,1942.0206,-1141.2206,25.1857,90.9517,5,5); // Bcar1
    AddStaticVehicle(467,1933.0507,-1141.3674,24.9614,91.1633,5,5); // Bcar2
    AddStaticVehicle(467,1910.7198,-1116.2435,25.4056,0.2359,5,5); // Bcar3
    AddStaticVehicle(467,1922.1654,-1130.6038,24.6865,271.5723,5,5); // Bcar4
    AddStaticVehicle(475,1933.8871,-1119.9832,26.2430,359.4479,5,5); // Bcar5
    AddStaticVehicle(475,1992.7706,-1119.4379,26.5795,89.2626,5,5); // Bcar6
    AddStaticVehicle(475,2009.3406,-1120.3386,26.1584,89.8836,5,5); // Bcar7


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,1499.1031,-942.8401,51.3468);
    SetPlayerFacingAngle(playerid,289.8234);
    SetPlayerCameraPos(playerid,1499.2920,-942.9570,51.3617);
    SetPlayerCameraLookAt(playerid,1499.1031,-942.8401,51.3468);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort 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,"/restart",true)==0)
    {
    SendRconCommand("gmx");
    return 1;
    }
    return 1;
    }


    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==EnterAmmuNation)
    {
    SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
    SetPlayerInterior(playerid,6);
    }
    if(pickupid==ExitAmmuNation)
    {
    SetPlayerPos(playerid,2495.3262,-1687.1743,13.5153);
    SetPlayerFacingAngle(playerid,357.4138);
    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 Abgebrochen,");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen,(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort ist zu Kurtz.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gieb bitte das Gewüntschte Passwort ein:","Register","Abbrechen");
    return 1;
    {
    else
    }
    }
    Register(playerid,inputtext);
    return 1;
    }
    }
    return 1;
    }


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


    stock Register (playerid,key[])
    {
    new Spielerdatei[64];
    new name [MAX_PLAYER_NAME]
    GetPlayerName(playerid,name,sizeof(name));
    format(spielerdatei,sizeof,(spielerdatei),"/Accounts/%s.txt",name);
    dini_create(spielerdatei);
    dini_set(spielerdatei,"Passwort",key);
    SenClientMessage(clienid,BLAU,"Erfolgreich Regestriert");
    return 1;
    }

  • hay,
    In Zeile 252 bei : SendClientMessage(playerid,BLAU,"Du hast Abgebrochen"); //// Mach das Komma nach "Du hast Abgebrochen" weg ;)


    LG

  • Ich glaube das liegt an Zeile 258


    if(!strlen,(inputtext))

    mach da mal das Komma weg.


    if(!strlen(inputtext))

  • Er hat #define BLAU und da hat er den Farbcode vergessen ^^