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=280032)
Dialog Help -
[MKD]Max - 30.08.2011
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
Re: Dialog Help -
=WoR=Varth - 30.08.2011
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");
Re: Dialog Help -
[MG]Dimi - 30.08.2011
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.
Re: Dialog Help -
=WoR=Varth - 30.08.2011
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.