1 kleiner Error

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
  • Woran kann es liegen??


    C:\Dokumente und Einstellungen\Alex\Desktop\MTA Selfmade.pwn(12) : error 026: no matching "#if..."




    #include
    #define DIALOG_TUTORIAL 1#define DIALOG_REGISTER 2#define DIALOG_LOGIN 3
    main(){ print("\n----------------------------------"); print(" MTA"); print("----------------------------------\n");}
    #endif


    public OnGameModeInit(){ UsePlayerPedAnims(false); SetGameModeText("MTA Selfmade");
    AddPlayerClass(28,2047.4270,1336.5569,10.6719,188.9284, 0, 0, 0, 0, 0, 0); AddPlayerClass(28,2047.4270,1336.5569,10.6719,188.9284, 353, 1000, 359, 100, 362, 99999); return 1;
    AddStaticVehicle(401,1227.1797,-914.0590,42.6812,99.6721,52,52); AddStaticVehicle(409,1226.2432,-905.7473,42.6697,10.2423,1,1);}


    public OnGameModeExit(){ return 1;}


    public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1;}


    public OnPlayerRequestSpawn(playerid){ return 1;}


    public OnPlayerConnect(playerid){
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gib bitte das Gwünschte Passwort ein!","Register","Abbrechen"); return 1;}


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


    public OnPlayerSpawn(playerid){
    ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"gta4you","www.gta4you.de.","OK","MTA"); return 1;}


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


    public OnVehicleSpawn(vehicleid){ return 1;}


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


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


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


    public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext,"/bsn",true)==0) {
    SetPlayerPos(playerid,1227.1797,-914.0590,42.6812); SendClientMessage(playerid,0xFFFF00FFFF,"Du wurdest
    Teleportiert"); return 1; } return 0;}


    public OnPlayerInfoChange(playerid){ 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 OnObjectMoved(objectid){ return 1;}


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


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


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


    public OnPlayerExitedMenu(playerid){ return 1;}</a_samp>


    </a_samp>
    //edit bearbeit</a_samp>
    /edit 2 bearbeitet</a_samp>

    2 Mal editiert, zuletzt von Exclusive FiveM Scripts ()

  • Code entfernen
    Von Editor auf Quellcode switch
    Code erneut posten


    Man kann das sont einfach nicht lesen -.-

    "Bevor ich mir Informationen aus der "Bild" hole,
    werde ich anfangen, Wahlergebnisse danach vorauszusagen,
    neben welchen Busch unsere Katze gepinkelt hat."

    Margarete Stokowski

  • #include


    #define DIALOG_TUTORIAL 1
    #define DIALOG_REGISTER 2
    #define DIALOG_LOGIN 3


    main()
    {
    print("\n----------------------------------");
    print(" MTA");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    UsePlayerPedAnims(false);
    SetGameModeText("MTA Selfmade");
    AddPlayerClass(28,2047.4270,1336.5569,10.6719,188.9284, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(28,2047.4270,1336.5569,10.6719,188.9284, 353, 1000, 359, 100, 362, 99999);
    return 1;

    AddStaticVehicle(401,1227.1797,-914.0590,42.6812,99.6721,52,52);
    AddStaticVehicle(409,1226.2432,-905.7473,42.6697,10.2423,1,1);
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gib bitte das Gwünschte Passwort ein!","Register","Abbrechen");
    return 1;
    }


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


    public OnPlayerSpawn(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"gta4you","www.gta4you.de.","OK","MTA");
    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 OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/bsn",true)==0)
    {
    SetPlayerPos(playerid,1227.1797,-914.0590,42.6812);
    SendClientMessage(playerid,0xFFFF00FFFF,"Du wurdest Teleportiert");
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    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 OnObjectMoved(objectid)
    {
    return 1;
    }


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


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


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


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }</a_samp>

  • Hier:
    #include


    #define DIALOG_TUTORIAL 1
    #define DIALOG_REGISTER 2
    #define DIALOG_LOGIN 3


    main()
    {
    print("\n----------------------------------");
    print(" MTA");
    print("----------------------------------\n");
    }


    AddPlayerClass(28,2047.4270,1336.5569,10.6719,188.9284, 353, 1000, 359, 100, 362, 99999);
    return 1;


    AddStaticVehicle(401,1227.1797,-914.0590,42.6812,99.6721,52,52);
    AddStaticVehicle(409,1226.2432,-905.7473,42.6697,10.2423,1,1);
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Regestrieren","Gib bitte das Gwünschte Passwort ein!","Register","Abbrechen");
    return 1;
    }


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


    public OnPlayerSpawn(playerid)
    {
    ShowPlayerDialog(playerid,DIALOG_TUTORIAL,DIALOG_STYLE_MSGBOX,"gta4you","www.gta4you.de.","OK","MTA");
    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 OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/bsn",true)==0)
    {
    SetPlayerPos(playerid,1227.1797,-914.0590,42.6812);
    SendClientMessage(playerid,0xFFFF00FFFF,"Du wurdest Teleportiert");
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    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 OnObjectMoved(objectid)
    {
    return 1;
    }


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


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


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


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }
    </a_samp>


    Mein Schatz:*