Problem with decreasing...
#4

Okey, so I suggest this:
pawn Код:
new PlayerStatus[MAX_PLAYERS];
Where the timer starts:
pawn Код:
PlayerStatus[playerid] = /*Here you enter the amount of textsize at the beginning*/;
Timer:
pawn Код:
forward l(playerid);
public l(playerid)
{
    PlayerStatus[playerid]-=/*Here the amount of lowering it.*/;
    TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
    TextDrawHideForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);

    if(multip <= 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "hello.");
        return 1;
    }

    TextDrawTextSize(gTextDrawData[E_REVIVE_PERCENTAGE][playerid], PlayerStatus[playerid], 15.000000);

    TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE_BOX][playerid]);
    TextDrawShowForPlayer(playerid, gTextDrawData[E_REVIVE_PERCENTAGE][playerid]);
    return 1;
}

If this is not working as you wish, then please give me the two TextDraws where they get created as well.


Regards,
Jeffry
Reply


Messages In This Thread
Problem with decreasing... - by Lorenc_ - 16.04.2011, 10:19
Re: Problem with decreasing... - by Jeffry - 16.04.2011, 10:50
Re: Problem with decreasing... - by Lorenc_ - 16.04.2011, 12:28
Re: Problem with decreasing... - by Jeffry - 16.04.2011, 15:39
Re: Problem with decreasing... - by Lorenc_ - 17.04.2011, 01:38
Re: Problem with decreasing... - by Jeffry - 17.04.2011, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)