Can someone help me with an textdraw update
#1

I am making a script that shows team scores in one of the corners. I already got it working but cant find a good way for a realtime update voor every player or at least almost realtime.

Can someone help me with this. Here is the script : "stock UpdateStatsTextdraw(playerid)"

pawn Код:
stock UpdateStatsTextdraw(playerid)
{
    new alphatxt[11], bravotxt[11], charlietxt[11], deltatxt[11];
    format(alphatxt, sizeof(alphatxt), "%d", ALPHASCORE);
    TextDrawSetString(Textalpha[playerid], alphatxt);

    format(bravotxt, sizeof(bravotxt), "%d", BRAVOSCORE);
    TextDrawSetString(Textbravo[playerid], bravotxt);

    format(charlietxt, sizeof(charlietxt), "%d", CHARLIESCORE);
    TextDrawSetString(Textcharlie[playerid], charlietxt);

    format(deltatxt, sizeof(deltatxt), "%d", DELTASCORE);
    TextDrawSetString(Textdelta[playerid], deltatxt);
}
Reply
#2

Yeah thats a good point
Reply
#3

can someone help me convert this to a textdraw for everyone instead of a player textdraw?
Reply
#4

Just edit the line having 'TextDrawShowForPlayer', change it to 'TextDrawShowForAll()...Or post the code !
Reply
#5

Thx for the help you both.

Reputation given to both of you its working now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)