Textdraw String help ?
#1

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
Reply
#2

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.
Reply
#3

EDIT: Lofti was faster
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)