Werbetafel Problem

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
  • Hallo,


    Ich möchte bei meinem Spawn eine Leinwand wo dann etwas draufsteht.


    Ich habe es erstmal mit einem Befehl gemacht also dass wenn ich den server starte, dass ich erst den befehl machen muss.


    Mein Problem ist , dass der Test mindestens 3mal nebeneinander steht anstatt zentriert in der mitte.+



    Der Befehl:




    if (strcmp("/tafel", cmdtext, true) == 0)
    { new objectid = CreateObject(19447, 1799.81, -1881.86, 14.39, 0.00, 0.00, 90.44);
    SetObjectMaterialText ( objectid, "San Andreas" , 0 , OBJECT_MATERIAL_SIZE_256x128,
    "Arial" , 28 , 0 , 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER ) ;
    return 1;
    }







    if (strcmp("/tafel", cmdtext, true) == 0)
    {
    new objectid = CreateObject(19447, 1799.81, -1881.86, 14.39, 0.00, 0.00, 90.44);
    SetObjectMaterialText ( objectid, "San Andreas " , 0 , OBJECT_MATERIAL_SIZE_256x128,
    "Arial" , 28 , 0 , 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER ) ;


    return 1;
    }

  • Versuchs mal so:


    if(strcmp("/tafel", cmdtext, true) == 0)
    {
    new TafelObjekt = CreateObject(19447, 1799.81, -1881.86, 14.39, 0.00, 0.00, 90.44);
    SetObjectMaterialText(TafelObjekt, "San Andreas", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    return 1;
    }


    Hier ist auch eine Seite wo du die einzelnen Parameter findest:


    https://wiki.sa-mp.com/wiki/SetObjectMaterialText_DE


    MfG MiX(eP)

  • Ne geht auch nicht. ( Das "San Andreas" steht 3mal nebeneinander da)