Textdraw
#1

How make an textdraw that gets playername or loads something in the scriptfiles?
Reply
#2

with 'format' function:
https://sampwiki.blast.hk/wiki/Format
Reply
#3

And where to put it?
Reply
#4

At your signature:
"Mapping and scripting for $$"

Why do you scripting for cash, if you don't know elementary functions...

Код:
new string[ 128 ];
new p_name[ 25 ];
GetPlayerName( playerid, p_name, sizeof( p_name) );

format( string, 128, "%s", p_name );
TextDrawSetString( TD, string );
It's a banal exemple ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)