SetTimerEx overwrites the last timer on that function?
#6

It's so simple I don't understand why it doesn't work, here.

pawn Код:
new Text:TXD_MoneyChange[MAX_PLAYERS];

forward HUDCreate(playerid);
public HUDCreate(playerid)
{
    TXD_MoneyChange[playerid] = TextDrawCreate(606.000000, 96.000000, "-$1337");
    TextDrawAlignment(TXD_MoneyChange[playerid], 3);
    TextDrawBackgroundColor(TXD_MoneyChange[playerid], 255);
    TextDrawFont(TXD_MoneyChange[playerid], 2);
    TextDrawLetterSize(TXD_MoneyChange[playerid], 0.329999, 1.300000);
    TextDrawColor(TXD_MoneyChange[playerid], -16776961);
    TextDrawSetOutline(TXD_MoneyChange[playerid], 1);
    TextDrawSetProportional(TXD_MoneyChange[playerid], 1);
    TextDrawSetSelectable(TXD_MoneyChange[playerid], 0);
   
    // just other textdraws being created here
   
    return 1;
}

forward HideMoneyTXD(playerid);
public HideMoneyTXD(playerid)
{
    TextDrawHideForPlayer(playerid,TXD_MoneyChange[playerid]);
    return 1;
}

OnPlayerDialogResp

when login/reg
            HUDCreate(playerid);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)