Textdraw String help ? - 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: Textdraw String help ? (
/showthread.php?tid=582945)
Textdraw String help ? -
Toxik - 24.07.2015
Sup guys i never learned the Textdraw formating and stringing
for example i create Some Textraw for player ping
how can i format the Textdraw to shows players Ping ?
If there any tut player Gimme a link my connection is on 65kbps and loading so slow :/
so if anyone can help me thanks
Re: Textdraw String help ? -
Lofti - 24.07.2015
I'm not an expert but here is what I would do:
Create a textdraw and a new string which we will format:
Код:
new Text:pingmessage;
new ping[length];
then you format the string: ping.
Код:
format(ping, sizeof(ping), GetPlayerPing(playerid));
then you set the string in the textdraw:
Код:
TextDrawSetString(pingmessage, ping);
I just started using TextDraw's yesterday and I haven;t tested if the code I put works since I'm in a rush.
Re: Textdraw String help ? -
Andre02 - 24.07.2015
EDIT: Lofti was faster