SA-MP Forums Archive
Dialog 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: Dialog help (/showthread.php?tid=483668)



Dialog help [SOLVED] - daniscape - 27.12.2013

Hello, peoples of Samp forums. I have a small issue with my dialog. Ive made a stats dialog its working perfect but i want the name at the top as a title.

this is the photo of the stats right now imgur.com/2Bm4UQU




this is my code
pawn Код:
new titlestring[250];
        format(titlestring, sizeof(titlestring), "Displaying Stats of %s");
        ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_LIST, titlestring, string2,"Close","",GetPlayerNameEx(targetid));
        SendClientMessageEx(playerid, COLOR_GRAD1,coordsstring);

Sulution :
pawn Код:
new titlestring[250], pName[MAX_PLAYER_NAME];GetPlayerName(playerid, pName, sizeof(pName));format(titlestring, sizeof(titlestring), "Displaying Stats of %s", pName);ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_LIST, titlestring, string2, "Close", "");SendClientMessageEx(playerid, COLOR_GRAD1, coordsstring);



Re: Dialog help - Konstantinos - 27.12.2013

pawn Код:
new
    caption[45];

format(caption, sizeof (caption), "Displaying Stats of %s", GetPlayerNameEx(targetid));
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_LIST, caption, string2, "Close", "");



Re: Dialog help - J4mmyHD - 27.12.2013

pawn Код:
new titlestring[250], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(titlestring, sizeof(titlestring), "Displaying Stats of %s", pName);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_LIST, titlestring, string2, "Close", "");
SendClientMessageEx(playerid, COLOR_GRAD1, coordsstring);



Re: Dialog help - daniscape - 27.12.2013

Quote:
Originally Posted by J4mmyHD
Посмотреть сообщение
pawn Код:
new titlestring[250], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(titlestring, sizeof(titlestring), "Displaying Stats of %s", pName);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_LIST, titlestring, string2, "Close", "");
SendClientMessageEx(playerid, COLOR_GRAD1, coordsstring);
This worked