Textdraw box wont click
#1

I've made set of clickable textdraw box. When i click on one of them nothing heppens.

heres code of 1(rest are same, just another position). Thank you in advice.

Код:
// textdraw - ongamemodeinit
TDZlatara[2] = TextDrawCreate(176.666641, 110.355529, "box");
TextDrawLetterSize(TDZlatara[2], 0.000000, 4.533335);
TextDrawTextSize(TDZlatara[2], 204.333297, 0.000000);
TextDrawAlignment(TDZlatara[2], 1);
TextDrawColor(TDZlatara[2], -1);
TextDrawUseBox(TDZlatara[2], 1);
TextDrawBoxColor(TDZlatara[2], 255);
TextDrawSetShadow(TDZlatara[2], 0);
TextDrawSetOutline(TDZlatara[2], 0);
TextDrawBackgroundColor(TDZlatara[2], 255);
TextDrawFont(TDZlatara[2], 1);
TextDrawSetProportional(TDZlatara[2], 1);
TextDrawSetShadow(TDZlatara[2], 0);
TextDrawSetSelectable(TDZlatara[2], true);
// OnPlayerClickTextDraw
if(clickedid == TDZlatara[2]){
			SPD(playerid, DIALOG_UNOSBOX_1, DIALOG_STYLE_INPUT, "1337 hackZ0r", "Unesite broj za lozinku.", "Potvrdi", "Odustani");
   			return 1;
	    }
// function that display textdraws
stock KreirajTDZlatara(playerid, status){
    switch(status){
		case 0:{
		    for(new i = 0;i<sizeof(TDZlatara);i++)
		    	TextDrawHideForPlayer(playerid, TDZlatara[i]);
		}
		case 1:{
		    for(new i = 0;i<sizeof(TDZlatara);i++)
		   	 	TextDrawShowForPlayer(playerid, TDZlatara[i]);
		}
	}
	return 1;
}
Reply


Messages In This Thread
Textdraw box wont click - by GGRPSkripter - 20.10.2015, 13:35
Re: Textdraw box wont click - by Dusan01 - 20.10.2015, 14:03
Re: Textdraw box wont click - by GGRPSkripter - 22.10.2015, 12:49
Re: Textdraw box wont click - by Dusan01 - 22.10.2015, 12:56
Re: Textdraw box wont click - by GGRPSkripter - 23.10.2015, 14:57
Re: Textdraw box wont click - by Pottus - 23.10.2015, 15:15
Re: Textdraw box wont click - by GGRPSkripter - 23.10.2015, 16:34
Re: Textdraw box wont click - by Dusan01 - 23.10.2015, 16:44
Re: Textdraw box wont click - by GGRPSkripter - 23.10.2015, 17:24
Re: Textdraw box wont click - by GGRPSkripter - 23.10.2015, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)