25.05.2015, 20:34
(
Последний раз редактировалось TheRohlikar; 25.05.2015 в 22:30.
)
Hello guys,
I've got a big problem with some textdraws..
Code..
You see creating Textdraws. There is no problem. They'll create and show. But when I want select them ("SelectTextDraw" (or something like that)), it's not doing anything on some TDs:
Delete Account
Options
About
Disconnect
I have no idea why...
Pawno is kidding me, maybe.
Thank you...
I've got a big problem with some textdraws..
Code..
PHP код:
enum TD_MainMenuValues
{
Float:td_pos_x,
Float:td_pos_y,
td_text[50],
Float:td_ls_x,
Float:td_ls_y,
Float:td_ts_x,
Float:td_ts_y,
td_al,
td_col,
bool:td_box,
td_box_cl,
td_ss,
td_so,
td_bcol,
td_font,
td_sp,
bool:td_ssel
}
new Text:TD[MAX_TEXTDRAWS][MAX_PLAYERS_EX];
new TD_MM[MAX_TEXTDRAWS][TD_MainMenuValues] =
{
{ 1001.529296, -77.250000 , "usebox" , 0.000000, 78.572769 , -117.294128, 0.000000 , 1 , 0 , true , 184, 0, 0, 0 , 0, 0, false },
{ 202.470596, 128.083328, "usebox" , 0.000000, 23.288345, 40.352924, -50.000000 , 1 , 0 , true , -248 , 0, 0, 0, 0, 0, false },
{ 43.294155, 344.749969, "Players On-line:" , 0.240588, 0.637499 , 150.000000 , 5.000000 , 1 , -1 , false , 0 , 0, 1, 51, 1, 1, false },
{ 46.647068, 130.500045, "You have no account yet." , 0.249999, 0.783333, 250.000000 , 15.000000 , 1 , -16777066 , false , 0 , 0, 1, 51, 1, 1, false },
{ 61.176490, 153.416687, "Create new account" , 0.368117, 1.144999, 195.000000 , 10.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 47.705841, 168.333389, "Account information" , 0.166234, 0.684165, 110.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 153.529327, 168.833374, "Delete account" , 0.166234, 0.684165, 130.000000 , 9.000000 , 1 , -16777132 , false , 0 , 0, 1, 51, 1, 1, true },
{ 96.058868, 192.333267, "Options" , 0.368117, 1.144999, 65.000000 , 10.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 47.705841, 208.333389, "Account settings" , 0.166234, 0.684165, 95.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 115.999969, 208.166748, "Chat & Teamspeak settings" , 0.166234, 0.684165, 195.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 99.411811, 231.249938, "About" , 0.368117, 1.144999, 50.000000 , 20.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 48.647098, 275.416717, "Connect to Teamspeak 3 Server" , 0.257529, 0.882499, 192.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 48.705921, 288.083404, "Set me AFK" , 0.257529, 0.882499, 103.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 48.764743, 300.750122, "View best gangs" , 0.257529, 0.882499, 125.000000 , 7.000000 , 1 , -196 , false , 0 , 0, 1, 51, 1, 1, true },
{ 130.058883, 323.249969, "Disconnect" , 0.368117, 1.144999, 85.000000 , 15.000000 , 1 , -16777132 , false , 0 , 0, 1, 51, 1, 1, true }
};
public OnPlayerConnect(playerid)
{
for(new i = 0;i<MAX_TEXTDRAWS;i++)
{
TD[i][playerid] = TextDrawCreate(TD_MM[i][td_pos_x], TD_MM[i][td_pos_y], TD_MM[i][td_text]);
TextDrawLetterSize(TD[i][playerid], TD_MM[i][td_ls_x], TD_MM[i][td_ls_y]);
TextDrawTextSize(TD[i][playerid], TD_MM[i][td_ts_x], TD_MM[i][td_ts_y]);
TextDrawAlignment(TD[i][playerid], TD_MM[i][td_al]);
TextDrawColor(TD[i][playerid], TD_MM[i][td_col]);
TextDrawUseBox(TD[i][playerid], TD_MM[i][td_box]);
TextDrawBoxColor(TD[i][playerid], TD_MM[i][td_box_cl]);
TextDrawSetShadow(TD[i][playerid], TD_MM[i][td_ss]);
TextDrawSetOutline(TD[i][playerid], TD_MM[i][td_so]);
TextDrawBackgroundColor(TD[i][playerid], TD_MM[i][td_bcol]);
TextDrawFont(TD[i][playerid], TD_MM[i][td_font]);
TextDrawSetProportional(TD[i][playerid], TD_MM[i][td_sp]);
TextDrawSetSelectable(TD[i][playerid], TD_MM[i][td_ssel]);
}
return 1;
}
Delete Account
Options
About
Disconnect
I have no idea why...
Pawno is kidding me, maybe.
Thank you...