SetMaterialObjectText problem
#2

Quote:
Originally Posted by streetpeace
Посмотреть сообщение
I have a problem with colors
What, exactly? Vague descriptions don't help at all.

Few more points to note:
  1. Colors are numbers! You don't need HexToInt here!
  2. Use a switch statement.
    pawn Код:
    switch(TagCouleur[playerid])
    {
        case 1: tagcouleur = 0xFF0000FF; //rouge
        case 2: tagcouleur = 0x0000FFFF; //bleu
        case 3: tagcouleur = 0x00FF00FF; //vert
        case 4: tagcouleur = 0x840000FF; //rouge foncй
        case 5: tagcouleur = 0x843A00FF; //marron
    }
  3. You're copying "inputtext" to "tag" without any real purpose.
Reply


Messages In This Thread
SetMaterialObjectText problem - by streetpeace - 15.12.2014, 11:48
Re: SetMaterialObjectText problem - by Vince - 15.12.2014, 12:09
Re : SetMaterialObjectText problem - by streetpeace - 15.12.2014, 12:23
Re: SetMaterialObjectText problem - by Vince - 15.12.2014, 12:33
Re : SetMaterialObjectText problem - by streetpeace - 15.12.2014, 12:36
Re : SetMaterialObjectText problem - by streetpeace - 15.12.2014, 17:38
Re : SetMaterialObjectText problem - by streetpeace - 16.12.2014, 10:33
Re: SetMaterialObjectText problem - by Stinged - 16.12.2014, 10:46
Re : SetMaterialObjectText problem - by streetpeace - 16.12.2014, 10:53
Re : SetMaterialObjectText problem - by streetpeace - 16.12.2014, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)