[Ajuda] SelectTextDraw (dou +++ rep)
#3

Eu tenho o textdraw criado e tem a funзгo de ter clicбvel.

Depois tenho o comando

pawn Код:
if(strcmp(cmd, "/textdraw", true) == 0)
        {
            TextDrawShowForPlayer(playerid, TextDraw01);
            TextDrawShowForPlayer(playerid, TextDraw02);
            TextDrawShowForPlayer(playerid, TextDraw03);
            TextDrawShowForPlayer(playerid, TextDraw04);
            TextDrawShowForPlayer(playerid, TextDraw05);
            SelectTextDraw(playerid, COLOR_GREEN);
            return 1;
        }
depois apareзo tudo bem para clicar..

E depois sigo para a public OnPlayerClickTextDraw

E dentro dela estб..

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == TextDraw01)
    {
       SendClientMessage(playerid, -1, " clicou no TextDraw01 ");
    }
    if(clickedid == TextDraw02)
    {
       SendClientMessage(playerid, -1, " clicou no TextDraw02 ");
    }
    if(clickedid == TextDraw03)
    {
       SendClientMessage(playerid, -1, " clicou no TextDraw03 ");
    }
    if(clickedid == TextDraw04)
    {
       SendClientMessage(playerid, -1, " clicou no TextDraw04 ");
    }
    if(clickedid == TextDraw05)
    {
       SendClientMessage(playerid, -1, " clicou no TextDraw05 ");
    }
    TextDrawHideForPlayer(playerid, TextDraw01);
TextDrawHideForPlayer(playerid, TextDraw02);
TextDrawHideForPlayer(playerid, TextDraw03);
TextDrawHideForPlayer(playerid, TextDraw04);
TextDrawHideForPlayer(playerid, TextDraw05);
CancelSelectTextDraw(playerid);
return 1;
}
Reply


Messages In This Thread
SelectTextDraw (dou +++ rep) - by DreyPT - 03.12.2012, 20:02
Re: SelectTextDraw (dou +++ rep) - by jpeg - 03.12.2012, 20:16
Re: SelectTextDraw (dou +++ rep) - by DreyPT - 03.12.2012, 20:53
Re: SelectTextDraw (dou +++ rep) - by jpeg - 03.12.2012, 20:56
Re: SelectTextDraw (dou +++ rep) - by ViniBorn - 03.12.2012, 20:58
Re: SelectTextDraw (dou +++ rep) - by DreyPT - 04.12.2012, 16:42
Re: SelectTextDraw (dou +++ rep) - by Schocc - 04.12.2012, 17:34
Re: SelectTextDraw (dou +++ rep) - by DreyPT - 04.12.2012, 17:42
Re: SelectTextDraw (dou +++ rep) - by Schocc - 04.12.2012, 17:48

Forum Jump:


Users browsing this thread: 3 Guest(s)