12.04.2013, 02:20
I just added this textdraw, but the issue is that when I added it all textdraws starts to dissapear (all selectable ones just dissapear)
The issue is that when u acess the UCP instead of showing the textdraws, it doesnt show them at all.
Before I added the radio txd it worked perfectly.
Код:
//top with the rest
new Text:Radio;
//Fs init
Radio = TextDrawCreate(111.000000, 390.000000, "Radio");
TextDrawBackgroundColor(Radio, 255);
TextDrawFont(Radio, 1);
TextDrawLetterSize(Radio, 0.500000, 1.399999);
TextDrawColor(Radio, -1);
TextDrawSetOutline(Radio, 0);
TextDrawSetProportional(Radio, 1);
TextDrawSetShadow(Radio, 1);
TextDrawSetSelectable(Radio, true);
TextDrawTextSize(Radio, 115.000000, 405.000000);
//fs exit
TextDrawDestroy(Radio);
//Click textdraw
if(clickedid == Radio)
{
new string[256];
strcat(string, "Rap\nRock\nMetal\nCountry\nPop\nDance\nTrance\nElectronic\nReggae\nRnB");
strcat(string, "\nChillout\nJazz\nDubstep");
ShowPlayerDialog(playerid, P_RADIO, DIALOG_STYLE_LIST,"MP3 Player.",string,"Play","Exit");
return 1;
}
//Public UCP
PlayerTextDrawSetSelectable(playerid, PlayerText:Radio, 1);
TextDrawShowForPlayer(playerid, Radio);
SelectTextDraw(playerid, 0x00FF00FF);
Before I added the radio txd it worked perfectly.

