[Ajuda] Click em Textdraw ...
#1

Bom eu queria um return em textdraw de click .. mas nao consegui alguem me pode ajudar ? pff ...

pawn Код:
new Text:gTextDraw;

public OnGameModeInit()
{
    gTextDraw = TextDrawCreate(10.000000, 141.000000, "MyTextDraw");
    TextDrawTextSize(gTextDraw,60.000000, 20.000000);
    TextDrawAlignment(gTextDraw,0);
    TextDrawBackgroundColor(gTextDraw,0x000000ff);
    TextDrawFont(gTextDraw,1);
    TextDrawLetterSize(gTextDraw,0.250000, 1.000000);
    TextDrawColor(gTextDraw,0xffffffff);
    TextDrawSetProportional(gTextDraw,1);
    TextDrawSetShadow(gTextDraw,1);
    TextDrawSetSelectable(gTextDraw, 1);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (!strcmp("/cmd", cmdtext, true))
        {
            TextDrawShowForPlayer(playerid, gTextDraw);
            SelectTextDraw(playerid, 0xFF4040AA);
            return 1;
        }
        return 0;
}
#define fghj 43
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(!clickedid) return TextDrawShowForPlayer(playerid, gTextDraw), SelectTextDraw(playerid, 0xFF4040AA);
    if(clickedid == gTextDraw)
    {
        new Msg[1000];
        format(Msg, 1000, "%sTEXTOOO\n", Msg);
        format(Msg, 1000, "%sTEXTOOO\n", Msg);
        ShowPlayerDialog(playerid, fghj, DIALOG_STYLE_MSGBOX, "TEXTOOO", Msg, "Ok", "Fechar");
    }
    return 1;
}
Reply


Messages In This Thread
Click em Textdraw ... - by JoaoMonteiro452 - 09.12.2013, 22:30
Re: Click em Textdraw ... - by Kuddy - 09.12.2013, 22:35
Re: Click em Textdraw ... - by JoaoMonteiro452 - 09.12.2013, 22:37
Re: Click em Textdraw ... - by Kuddy - 09.12.2013, 22:42
Re: Click em Textdraw ... - by JoaoMonteiro452 - 09.12.2013, 22:46
Re: Click em Textdraw ... - by CharlieBrown - 09.12.2013, 22:52
Re: Click em Textdraw ... - by JoaoMonteiro452 - 09.12.2013, 22:55
Re: Click em Textdraw ... - by CharlieBrown - 09.12.2013, 22:58
Re: Click em Textdraw ... - by Kuddy - 09.12.2013, 23:00
Re: Click em Textdraw ... - by JoaoMonteiro452 - 09.12.2013, 23:00

Forum Jump:


Users browsing this thread: 1 Guest(s)