Dialog edit - 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 edit (
/showthread.php?tid=419836)
Dialog edit -
TFreemen - 02.03.2013
Is there a way to change the dialog lines In Game?
I have this dialog...
Код:
CMD:xxxxxx(playerid, params[])
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "XXXXXXXXXXXXXX", "XXXXXXXXXXX", "Exit", "");
return 1;
}
And i wonder if I can edit it in game.It`s an important dialog that request to change the lines everyday.
Re: Dialog edit -
zxc1 - 02.03.2013
You will have to store the string somewhere, and then use it.
For exmaple:
You make some cmd that sets that string idk like: /setstring [string], then it saves the string in some files, as you wish.
Afterwards, in your wanted cmd, you just get the string for that file.