Help with textdraws.
#1

Hi, I have a problem with textdraws... With my function specifically.
Here we go, I made this function:
PHP код:
#define red 1
#define green 2
#define yellow 3
#define purple 4
#define blue 5
#define orange 6
new ColorTag[][] =
{
    {
red0xFF0000},
    {
green0x00FF00},
    {
yellow0xFFFF00},
    {
purple0xBB00FF},
    {
blue0x0000FF},
    {
orange0xFFAA00}
};
PTextDrawColor(playerididcolor)
{
    new 
idtag;
    for(new 
isizeof(ColorTag); i++)
    {
        if(
color == ColorTag[i][0])
        {
            
infoT[playerid][id][Color] = ColorTag[i][0];
            
//PlayerTextDrawColor(playerid, Textdraw[playerid][id], ColorTag[i][1]);
            
idtag ColorTag[i][1];
            
printf("______________%i, %x"ColorTag[i][0], ColorTag[i][1]); //It shows perfectly the hex color, but it doesn't change color
        
}
    }
    return 
PlayerTextDrawColor(playeridTextdraw[playerid][id], idtag);

But, for some reason, the textdraw color doesn't change... I "refresh" the textdraw(Showing it again) but it still doesn't work.
Shall I use an enum for the array? Just like this
Thanks for reading, I hope someone help me
Reply


Messages In This Thread
Help with textdraws. - by Whillyrez - 10.01.2017, 18:49
Re: Help with textdraws. - by Yaa - 10.01.2017, 19:49
Re: Help with textdraws. - by NaS - 10.01.2017, 20:02
Respuesta: Re: Help with textdraws. - by Whillyrez - 10.01.2017, 20:12
Re: Respuesta: Re: Help with textdraws. - by NaS - 10.01.2017, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)