Jump to content

Question

Posted

vreau sa fac un textdraw care sasi schimbe culoarea singur , am facut eu cu random dar imi da o eroare tag mismach 1 ceva de genul ma puteti ajuta putin ?

2 answers to this question

Recommended Posts

Posted

la forward adaugi:

forward TextdrawColorChange();
adaugi la sfarsitul modului
public TextdrawColorChange()
{
  new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF };
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  	TextDrawHideForPlayer(i,Textdraw0); 
  	TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]);
  	TextDrawShowForPlayer(i,Textdraw0);
  }
  SetTimer("TextdrawColorChange", 60000, 0);
}

TextDraw0 schimbi cu textdraw-ul tau

Guest farse
Posted

Cum a zis heker,sau poti folosi in string culori,gen ~r~,~g~ http://wiki.sa-mp.com/wiki/Colors_List

public TextdrawColorChange()
{
  new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF };
TextDrawSetString(Textdraw0,"We ~r~ love ~g~ to ~p~ entertainment~b~ you!");
  SetTimer("TextdrawColorChange", 60000, 0);
}

Si daca vrei sa folosesti versiunea lui heker,exista TextDrawHideForAll...
public TextdrawColorChange()
{
  new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF };
  	TextDrawHideForAll(Textdraw0); 
  	TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]);
  	TextDrawShowForAll(Textdraw0);
  SetTimer("TextdrawColorChange", 60000, 0);
}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.