name in dialog - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: name in dialog (
/showthread.php?tid=240480)
name in dialog -
tanush - 15.03.2011
I want to make the player see the other player name on dialog, how i do that
pawn Код:
ShowPlayerDialog(clickedplayerid,10000,DIALOG_STYLE_MSGBOX, "Stats","Name: {#FFB300}%s","Close","",playerid);
with this i got %s and it never show their name
Re: name in dialog -
admantis - 15.03.2011
pawn Код:
new string[128], name[28];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Name: {FFB300}%s", name);
ShowPlayerDialog(clickedplayerid,10000,DIALOG_STYLE_MSGBOX, "Stats",string,"Close","");
Re: name in dialog -
tanush - 15.03.2011
Lolll i failed xD thanks