Dialog Help
#1

hello guys i need help with dialog when play show to him dialog

ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"%s" Join\nLock","Choose","Cancel");


how is can make the %s when someone enter the checkpoint show him name instaed of show %s


for e.x



ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Kil ler"Join\nLock","Choose","Cancel");


not only killer every one show him this dialog he name come up instaed of Killer or %s


what i mean how i can do at caption[] place show player name
Reply
#2

pawn Код:
new pname[MAX_PLAYER_NAME],string[64];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Name: %s",pname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,string,"Choose","Cancel");
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
pawn Код:
new pname[MAX_PLAYER_NAME],string[64];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Name: %s",pname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,string,"Choose","Cancel");
PHP код:
new pname[MAX_PLAYER_NAME],string[64];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Name: %s",pname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,string,"Join\nLock","Choose","Cancel"); 
You missed Info.
Reply
#4

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
PHP код:
new pname[MAX_PLAYER_NAME],string[64];
GetPlayerName(playerid,pname,sizeof(pname));
format(string,sizeof(string),"Name: %s",pname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,string,"Join\nLock","Choose","Cancel"); 
You missed Info.
My bad.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)