12.12.2016, 19:18
How do I store a variable into the string of this DIALOG_STYLE_INPUT? I'm pretty confused, I'd appreciate some help.
Just an example code:
I hope I made myself clear.
Just an example code:
PHP код:
CMD:test(playerid, params[])
{
ShowPlayerDialog(playerid, Test, DIALOG_STYLE_INPUT, "Hi", "Hello", "Ok", "Cancel"); // Let's say I'd type "Samp" here in this dialog.
}
return 1;
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==Test && response==1)
{
format(string, sizeof string, "%s", ); // Here is where I want the "Samp" variable string to be stored in.
}
return 1;
}