SA-MP Forums Archive
Can someone help me with an textdraw update - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can someone help me with an textdraw update (/showthread.php?tid=397882)



Can someone help me with an textdraw update - HireMe - 07.12.2012

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);
}



Re: Can someone help me with an textdraw update - HireMe - 07.12.2012

Yeah thats a good point


Re: Can someone help me with an textdraw update - HireMe - 07.12.2012

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


Re: Can someone help me with an textdraw update - RajatPawar - 07.12.2012

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


Re: Can someone help me with an textdraw update - HireMe - 07.12.2012

Thx for the help you both.

Reputation given to both of you its working now