[SAMMELTHREAD] Kleine Scripting Fragen

Dein Problem konnte durch einen User gelöst werden? Bedank dich bei ihm indem du seinen Beitrag als Hilfreich markierst sowie einen Daumen oben dalässt
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
  • Ich hatte das schon oben, ging aber auch nicht.


    Das steht in der Logg :


    [19:25:20] Diamond_Effect has logged in.
    [19:25:20] newstate = 8 / playerid: 0
    [19:25:20] newstate = 1 / playerid: 0
    [19:25:33] newstate = 2 / playerid: 0
    [19:25:33] in
    [19:25:33] engine: -1

  • Jeffry: Und wo muss ich mein gemappted im Filterscript einfügen?


    Habe das so:




    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {


    //Ammunation


    //Objects////////////////////////////////////////////////////////////////////////////////////////////////////////
    new tmpobjid;
    tmpobjid = CreateObject(18981,-308.268,828.508,237.062,0.000,90.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet1", 0);
    tmpobjid = CreateObject(19377,-300.590,816.092,237.562,0.000,0.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-295.720,820.992,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-305.320,821.002,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-295.720,830.622,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-305.320,830.612,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-300.560,830.612,237.562,0.000,0.000,270.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(18981,-308.268,828.508,243.262,0.000,90.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet1", 0);
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    tmpobjid = CreateObject(1533,-295.831,827.955,237.562,0.000,0.000,270.000,300.000);
    GEMAPPTESSSSSSSSSSSSSSS


    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    Und das FS normal in die server.cfg eingetragen, doch Ingame ist nichts :c


    Mit freundlichen Grüßen
    JustMe.77 8)

  • Das ganze Zeugs brauchst du alles nicht, mache das weg.

    Spoiler anzeigen
    #include <a_samp>

    Spoiler anzeigen
    public OnFilterScriptInit()
    {
    //Ammunation

    Spoiler anzeigen
    //Objects////////////////////////////////////////////////////////////////////////////////////////////////////////
    new tmpobjid;
    tmpobjid = CreateObject(18981,-308.268,828.508,237.062,0.000,90.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet1", 0);
    tmpobjid = CreateObject(19377,-300.590,816.092,237.562,0.000,0.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-295.720,820.992,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-305.320,821.002,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-295.720,830.622,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-305.320,830.612,237.562,0.000,0.000,180.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(19377,-300.560,830.612,237.562,0.000,0.000,270.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14754, "sfhsb3", "ah_skrtmorebroon", 0);
    tmpobjid = CreateObject(18981,-308.268,828.508,243.262,0.000,90.000,90.000,300.000);
    SetObjectMaterial(tmpobjid, 0, 14710, "vgshm3int2", "HSV_3carpet1", 0);

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    tmpobjid = CreateObject(1533,-295.831,827.955,237.562,0.000,0.000,270.000,300.000);

    return 1;
    }



    EDIT:
    @[LnD]JustMe.77: Gerne :)

    3HZXdYd.png

    Einmal editiert, zuletzt von Jeffry ()

  • Kriege den Error nicht weg:


    error 017: undefined symbol "Create3DTextLabel"




    Create3DTextLabel("Willkommen auf dem Cali Kartell Deathmatch Server\n{FFFFFF}Wir hoffen dir gefällt das Script,\n und wünschen dir Viel Spaß beim Töten.",ORANGE,2187.5120,1684.8123,11.1071+0.5, 40.0, -1, 1);return 1;

  • Beitrag von Corvus ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Beitrag von Manniac ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Warum bekomme ich Massig Warnings Tag Misachtung
    new vehgas[212] =
    {
    0.75,
    0.75,
    0.6,
    2.5,
    0.3,
    0.3,
    5.3,
    2.5,
    1.8,
    1,
    0.4,
    2, //Infernus
    0.6,
    0.4,
    0.3,
    1.4,
    0.8,
    15,
    0.9,
    0.7,
    0.4, //Taxi
    0.3,
    0.9,
    1.2,
    2.5,
    150,
    1.2,
    2.4,
    2.3,
    1.2,
    14.6,
    1.6,
    25, //rhino
    4.9,
    2.1,
    1,
    1,
    1.7,
    1,
    1,
    1,
    1, //RC Bandit
    1,
    2.5,
    7,
    1,
    15,
    15,
    0.3,
    0.5,
    1,.......