Dialog help
#1

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

pawn Код:
new
    caption[45];

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

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);
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)