Textdraw0 = TextDrawCreate(166.000000, 276.000000, "Role Play"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.300000, 1.600000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); TextDrawSetSelectable(Textdraw0, 1); Textdraw1 = TextDrawCreate(301.000000, 276.000000, "Race"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 2); TextDrawLetterSize(Textdraw1, 0.310000, 1.600000); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); TextDrawSetSelectable(Textdraw1, 0); Textdraw2 = TextDrawCreate(399.000000, 276.000000, "Freerooam"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 2); TextDrawLetterSize(Textdraw2, 0.270000, 1.600000); TextDrawColor(Textdraw2, -1); TextDrawSetOutline(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); TextDrawSetSelectable(Textdraw2, 0);
Cara ja ta tudo pronto olhe o Topico quando clico em Race vai na Text Dranw Role Play ele buga parece! quando passo o mause na Race ou Freeroam ele vai sempre na Role Play!
|
isso e pq cada menu daqueles tem que ter resposta diferente e independente.
|
Voce nao me entendeu ainda estou com o mesmo Problema dese cara desse topico aqui
https://sampforum.blast.hk/showthread.php?tid=469393 ! |
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
SendClientMessage(playerid, 0xFFFFFFAA, "race.");
}
if(clickedid == Textdraw1)
{
SendClientMessage(playerid, 0xFFFFFFAA, "rp.");
}
if(clickedid == Textdraw2)
{
SendClientMessage(playerid, 0xFFFFFFAA, "frerooam.");
}
return 1;
}
Textdraw0 = TextDrawCreate(166.000000, 276.000000, "Role Play"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.300000, 1.600000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); TextDrawSetSelectable(Textdraw0, 1); Textdraw1 = TextDrawCreate(301.000000, 276.000000, "Race"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 2); TextDrawLetterSize(Textdraw1, 0.310000, 1.600000); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 1); TextDrawSetProportional(Textdraw1, 1); TextDrawSetSelectable(Textdraw1, 1); Textdraw2 = TextDrawCreate(399.000000, 276.000000, "Freerooam"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 2); TextDrawLetterSize(Textdraw2, 0.270000, 1.600000); TextDrawColor(Textdraw2, -1); TextDrawSetOutline(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); TextDrawSetSelectable(Textdraw2, 1);
hum
algo assim pawn Код:
|
voce deve estar fazendo algo errado
segundo a wiki https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw isso ae devia funfar, olha direito. |
Te garanto que essa parte de selecionar e aparecer as funзao ta certo ja fui na Wiki o Problema e que quando vou selecionar uma text draw a race OU a frerroam vai na role Play so na role play e tbm se eu tiver com o mause no meio da tela ele seleciona a role Play! isso que nem O bruno falo no topico do MLk e bugue do samp mais tem como resolver e eu nao to conseguindo
edit vou tentar! |