13.04.2017, 23:33
estou com uma dъvida imensa, porque eu nгo consigo fazer uma textdraw selecionбvel, exemplo, quando eu dou o comando aparece todas textdraws normais sу que nгo aparece a seta na tela nem da pra clicar nas textdraws q setei como selecionбvel..., vou deixar o cуdigo de como estб;
Poderiam me informar o que estб errado para isso nгo funcionar ?...
Quote:
new Text:TextdrawM0 [MAX_PLAYERS]; new Text:TextdrawM1 [MAX_PLAYERS]; new Text:TextdrawM2 [MAX_PLAYERS]; new Text:TextdrawM3 [MAX_PLAYERS]; new Text:TextdrawM4 [MAX_PLAYERS]; new Text:TextdrawM5 [MAX_PLAYERS]; new Text:TextdrawM6 [MAX_PLAYERS]; new Text:TextdrawM7 [MAX_PLAYERS]; new Text:TextdrawM8 [MAX_PLAYERS]; MostrarMinigames(playerid) { TextDrawShowForPlayer(playerid, TextdrawM0[playerid]); TextDrawShowForPlayer(playerid, TextdrawM1[playerid]); TextDrawShowForPlayer(playerid, TextdrawM2[playerid]); TextDrawShowForPlayer(playerid, TextdrawM3[playerid]); TextDrawShowForPlayer(playerid, TextdrawM4[playerid]); TextDrawShowForPlayer(playerid, TextdrawM5[playerid]); TextDrawShowForPlayer(playerid, TextdrawM6[playerid]); TextDrawShowForPlayer(playerid, TextdrawM7[playerid]); TextDrawShowForPlayer(playerid, TextdrawM8[playerid]); hud_minigames[playerid] = true; } SumirMinigames(playerid) { TextDrawHideForPlayer(playerid, TextdrawM0[playerid]); TextDrawHideForPlayer(playerid, TextdrawM1[playerid]); TextDrawHideForPlayer(playerid, TextdrawM2[playerid]); TextDrawHideForPlayer(playerid, TextdrawM3[playerid]); TextDrawHideForPlayer(playerid, TextdrawM4[playerid]); TextDrawHideForPlayer(playerid, TextdrawM5[playerid]); TextDrawHideForPlayer(playerid, TextdrawM6[playerid]); TextDrawHideForPlayer(playerid, TextdrawM7[playerid]); TextDrawHideForPlayer(playerid, TextdrawM8[playerid]); hud_minigames[playerid] = false; } public OnPlayerConnect(playerid) { Aqui nesta public estб todas as textdraws... uma delas estб assim: TextdrawM0[playerid] = TextDrawCreate(126.250000, 113.583320, "Lista_de_Minigames"); TextDrawLetterSize (TextdrawM0[playerid], 0.300000, 1.399999); TextDrawTextSize (TextdrawM0[playerid], 519.000000, 0.000000); TextDrawAlignment (TextdrawM0[playerid], 1); TextDrawColor (TextdrawM0[playerid], -1); TextDrawUseBox (TextdrawM0[playerid], 1); TextDrawBoxColor (TextdrawM0[playerid], 120); TextDrawSetShadow (TextdrawM0[playerid], 0); TextDrawSetOutline (TextdrawM0[playerid], 1); TextDrawBackgroundColor (TextdrawM0[playerid], 255); TextDrawFont (TextdrawM0[playerid], 1); TextDrawSetProportional (TextdrawM0[playerid], 1); TextDrawSetShadow (TextdrawM0[playerid], 0); /*==========================================*/ SelectTextDraw(playerid, 0xFF4040AA); /*==========================================*/ return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(clickedid == TextdrawM2[playerid]) { ChatMsg(playerid, -1, "Funcionou"); CancelSelectTextDraw(playerid); SelectTextDraw(playerid, 0xFF4040AA); } if(clickedid == TextdrawM3[playerid]) { ChatMsg(playerid, -1, "Funcionou kkkj"); SelectTextDraw(playerid, 0xFF4040AA); } return 1; } CMD:minigames(playerid) { if(minigame_ativar == false) { ChatMsg(playerid, -1, "Os minigames estгo desabilitados no momento"); } else { TextDrawSetSelectable(TextdrawM2[playerid], 1); TextDrawSetSelectable(TextdrawM3[playerid], 1); MostrarMinigames(playerid); } return 1; } |