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



Dialog - Whatwasit - 21.08.2015

Hello,

I don't really, when I post that it the game mode. ( without any error)
When I test the command, no dialog appears, as the command don't exist.
Код:
CMD:info(playerid,params[])
{
new pDialog[3000];
format(pDialog, sizeof pDialog, "%s Score: %d", pDialog, GetPlayerScore(playerid));
ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Stats",pDialog, "Ok", "");
return 1;
}
Another question :

What is the %s in the forth line ?

Thanks for your help


Re: Dialog - anassmaroc - 21.08.2015

Try This
Код:
ShowPlayerDialog(playerid, 5060, DIALOG_STYLE_MSGBOX, "Stats",pDialog, "Ok", "");



Re: Dialog - karemmahmed22 - 21.08.2015

Quote:
Originally Posted by Whatwasit
Посмотреть сообщение
Hello,

I don't really, when I post that it the game mode. ( without any error)
When I test the command, no dialog appears, as the command don't exist.
Код:
CMD:info(playerid,params[])
{
new pDialog[3000];
format(pDialog, sizeof pDialog, "%s Score: %d", pDialog, GetPlayerScore(playerid));
ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Stats",pDialog, "Ok", "");
return 1;
}
Another question :

What is the %s in the forth line ?

Thanks for your help
%s => Here
Dialog => Here

About your command i think just try to show a dialog without formats,etc
Try
Код:
ShowPlayerDialog(playerid, 5555, DIALOG_STYLE_MSGBOX, "Stats","TEST", "Ok", "");



Re: Dialog - Whatwasit - 21.08.2015

Resolve, thanks