[Question]Texdraws and GetPlayerName - 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: [Question]Texdraws and GetPlayerName (
/showthread.php?tid=365413)
[Question]Texdraws and GetPlayerName -
Beastlynoob - 02.08.2012
I was wondering if their is a way to get a textdraw to show a player his name,i tried doing something similar to the sendclientmessage way but the textdraw just says %s
Re: [Question]Texdraws and GetPlayerName -
NeverKnow - 02.08.2012
new string[100], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s", PlayerName);
TextDrawSetString(TextDraw, string);
TextDrawShowForAll(TextDraw);
Re: [Question]Texdraws and GetPlayerName -
Vince - 03.08.2012
Quote:
Originally Posted by NeverKnow
new string[100], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s", PlayerName);
TextDrawSetString(TextDraw, string);
TextDrawShowForAll(TextDraw);
|
Why do you need two strings if you only need to display a single one in its whole?
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
TextDrawSetString(TextDraw, PlayerName);
TextDrawShowForAll(TextDraw);
AW: [Question]Texdraws and GetPlayerName -
Beastlynoob - 03.08.2012
thnx bro