SA-MP Forums Archive
How would I do this? - 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: How would I do this? (/showthread.php?tid=333022)



How would I do this? - Lynn - 10.04.2012

I want it to be like this;
pawn Код:
format(string, sizeof(string), "Please input the ID of the player", Info[0][sIn]);
ShowPlayerDialog(playerid, DIALOG, DIALOG_STYLE_LIST, " Dialog Text", string, "OK", "");
This is EXAMPLE code, I want the Dialog to display the Name of the player to be displayed in anther dialog, that uses
Info[0][sIn] in a dialog List formation though.
That way, the input text sets it to the name.
pawn Код:
if(dialogid == DIALOG)
{
    if(response)
    {
 
            Info[0][sIn] = strlen(inputtext);
    }
}



Re: How would I do this? - Jonny5 - 10.04.2012

you want to pass Info[0][sIn] to the dialog response?

if so the only way i know is using YSI's y_inline and y_dialogs.
it is super simple to use and will make this sort of thing a snap!