SAMP errors

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
  • Hi ich habe ein Problem habe 4 Errors ;(



    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(267) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : error 029: invalid expression, assumed zero
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : warning 215: expression has no effect
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : error 001: expected token: ";", but found "]"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : error 029: invalid expression, assumed zero
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : fatal error 107: too many error messages on one line






    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 abbgebrochen.");
    Kick(playerid);
    }
    {
    if[response==1];
    }
    if(!strlen(inputtext))
    return 1;
    {
    SendClientMessage(playerid,BLAU,"Das Passwort ist nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Bitte geben sie ein Passwort ein","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register (playerid,inputtext);
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_TUTORIAL)
    {

    if(response==1)
    {
    SetPlayerPos(playerid,1227.3961,-915.1841,42.9941);
    SendClientMessage(playerid,0x0000FFFF,"Du wurdest erfolgreich Teleportiert");
    }
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du wurdest nicht Teleportiert");
    }


    könnte mir jemand weiterhelfen?

    • #include <a_samp>
      #include <dini>


      #define WEIS 0xFFFFFFFF
      #define BLAU 0x0000FFFF


      #define DIALOG_TUTORIAL 1
      #define DIALOG_REGISTER 2
      #define DIALOG_ LOGIN 3


      #define GEORG_PLAYER_NAME





      new bsnenter;
      new bsnexit;


      main()
      {
      print("\n----------------------------------");
      print(" Welcome to German-Realife");
      print("----------------------------------\n");
      }




      public OnGameModeInit()
      {



      UsePlayerPedAnims();
      bsnexit=CreatePickup(1559,1,363.0546,-75.1737,1001.5078);
      bsnenter=CreatePickup(1559,1,1199.2493,-918.8867,43.1177);



      DisableInteriorEnterExits();
      SetGameModeText("Realife Mode");
      AddPlayerClass(0,2082.5378,1283.5509,10.8203,89.3113,0,0,0,0,0,0); // position
      AddPlayerClass(1,2082.5378,1283.5509,10.8203,89.3113,25,200,0,0,0,0); // position


      AddStaticVehicle(400,1227.3961,-915.1841,42.9941,100.3769,113,1); // auto1
      AddStaticVehicle(597,1224.9984,-903.0025,42.6678,96.4167,0,1); // car2
      return 1;
      }


      public OnGameModeExit()
      {
      return 1;
      }


      public OnPlayerRequestClass(playerid, classid)
      {
      SetPlayerPos(playerid,2082.5378,1283.5509,10.8203);
      SetPlayerFacingAngle(playerid,89.3113);
      SetPlayerCameraPos(playerid,2077.7776,1283.5801,10.8203);
      SetPlayerCameraLookAt(playerid,2077.7776,1283.5801,10.8203);
      return 1;
      }


      public OnPlayerConnect(playerid)
      {
      ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Bitte geben sie ein 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,"/bsn",true)==0)
      {
      ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"BSN","Möchten sie zum BSN?","JA","NEIN");
      return 1;
      }
      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==bsnenter)
      {
      SetPlayerPos(playerid,365.8094,-73.5718,1001.5078);
      SetPlayerInterior(playerid,10);
      GameTextForPlayer(playerid,"~b~Du ~b~hast ~b~den ~b~BSN ~b~betreten",3000,3);
      }
      if(pickupid==bsnexit)
      {
      SetPlayerPos(playerid,1199.7502,-922.3343,43.0222);
      SetPlayerFacingAngle(playerid,176.8047);
      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 abbgebrochen.");
      Kick(playerid);
      }
      {
      if[response==1];
      }
      if(!strlen(inputtext))
      return 1;
      {
      SendClientMessage(playerid,BLAU,"Das Passwort ist nicht lang genug.");
      ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Bitte geben sie ein Passwort ein","Register","Abbrechen");
      return 1;
      }
      else
      {
      Register (playerid,inputtext);
      return 1;
      }
      }
      }
      if(dialogid==DIALOG_TUTORIAL)
      {


      if(response==1)
      {
      SetPlayerPos(playerid,1227.3961,-915.1841,42.9941);
      SendClientMessage(playerid,0x0000FFFF,"Du wurdest erfolgreich Teleportiert");
      }
      if(response==0)
      {
      SendClientMessage(playerid,BLAU,"Du wurdest nicht Teleportiert");
      }
      }
      return 1;
      }


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


      stock Register(playerid,key[])
      return 1;
      {
      new Spielerdatei[64];
      new name[MAX_PLAYER_NAME];
      GetPlayerName(playerid,georg,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
      format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
      dini_Create(Spielerdatei);
      dini_Set(Spielerdatei,"Passwort",key);
      SendClientmessage(playerid,BLAU,"Erfolgreich regestriert.");
      return 1;
      }






  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid==DIALOG_REGISTER)
    {
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abbgebrochen.");
    Kick(playerid);
    }
    {
    if[response==1]
    }
    if(!strlen(inputtext))
    return 1;
    {
    SendClientMessage(playerid,BLAU,"Das Passwort ist nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Bitte geben sie ein Passwort ein","Register","Abbrechen");
    return 1;





    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(267) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(268) : error 029: invalid expression, assumed zero
    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(268) : warning 215: expression has no effect
    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(268) : error 001: expected token: ";", but found "]"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(268) : error 029: invalid expression, assumed zero
    C:\Users\Georg\Desktop\GTA Server\gamemodes\TEST.pwn(268) : 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.

  • habe jetzt 11 errors ;((



    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid==DIALOG_REGISTER)
    {
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abbgebrochen.");
    Kick(playerid);
    }
    {
    if(response==1);
    }
    if(!strlen(inputtext))
    return 1;
    {
    SendClientMessage(playerid,BLAU,"Das Passwort ist nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Bitte geben sie ein Passwort ein","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register (playerid,inputtext);
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_TUTORIAL)
    {

    if(response==1)
    {
    SetPlayerPos(playerid,1227.3961,-915.1841,42.9941);
    SendClientMessage(playerid,0x0000FFFF,"Du wurdest erfolgreich Teleportiert");
    }
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du wurdest nicht Teleportiert");
    }
    }
    return 1;
    }


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


    stock Register(playerid,key[])
    return 1;
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,georg,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_Create(Spielerdatei);
    dini_Set(Spielerdatei,"Passwort",key);
    SendClientmessage(playerid,BLAU,"Erfolgreich regestriert.");
    return 1;
    }







    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(268) : error 036: empty statement
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(270) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(272) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(275) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(277) : warning 225: unreachable code
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(277) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(277) : error 029: invalid expression, assumed zero
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(278) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(280) : warning 217: loose indentation
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(283) : warning 209: function "OnDialogResponse" should return a value
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(284) : error 010: invalid function or declaration
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(287) : error 010: invalid function or declaration
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(292) : error 010: invalid function or declaration
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(297) : error 010: invalid function or declaration
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(305) : warning 203: symbol is never used: "key"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(305) : warning 203: symbol is never used: "playerid"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(305 -- 307) : error 055: start of function body without function header
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(310) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(312) : error 021: symbol already defined: "dini_Create"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(313) : error 021: symbol already defined: "dini_Set"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(315) : error 010: invalid function or declaration
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(322) : warning 203: symbol is never used: "Spielerdatei"
    C:\Users\Georg\Desktop\GTA Server\gamemodes\Georg.pwn(322) : warning 203: symbol is never used: "name"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    11 Errors.

    Einmal editiert, zuletzt von XxPlayzxX ()