20.10.2015, 13:35
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.
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;
}


