Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

SetDynamicObjectMaterialText Color Problem

$
0
0
Hi, I do not see the font when I apply the following codes. What is the problem ?

Code:

public OnGameModeInit()
{
        renk1 = CreateDynamicObject(19482,-1419.585,936.568,11.897,0.000,0.000,180.000,-1,-1,-1,300.000,300.000);
        SetDynamicObjectMaterialText(renk1, 0, "Test", 90, "Ariel", 70, 0, hex, 0x00000000, 0);
        return 1;
}

CMD:test(playerid, params[])
{
        SetTimer("RaibBaba", 100, true);
        return 1;
}

forward RaibBaba();
public RaibBaba()
{
        new color_Red, color_Green, color_Blue, string[11], hex;
    color_Red = floatround((0xFF * floatsin((o / (o2 / 3.0)), radian)));
        color_Green = floatround((0xFF / o2) * o);
        color_Blue = floatround((0xFF / o2) * (o2 - o));
        format(string, sizeof(string), "0x%06xFF", color_Red << 16 | color_Green << 8 | color_Blue);
        sscanf(string, "x", hex);
        SetDynamicObjectMaterialText(renk1, 0, "Test", 90, "Ariel", 70, 0, hex, 0x00000000, 0);
        if(s == 0)
        {
                if(o > 0) o--;
                if(o == 0) s = 1;
        }
        if(s == 1)
        {
            if(o < 200)
            {
                    o++;
                }
                if(o == 200)
                {
                    s = 0;
                }
        }
        return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles