30.06.2012, 02:57
Hi guys,
I thought that it would be much easier if I could use the second param, dialogid, as string and not integer, so I went to a_samp.inc, and I've changed this lines:
And on my gamemode I've changed the OnDialogResponse to:
I think that with this changes it should now handle strings with no problem, but when I show a dialog like this:
I print the dialogid on the OndialogResponse and I get a null value...
Does anyone have an idea about how to fix this if possible?
I'll rep you for sure, Thanks
I thought that it would be much easier if I could use the second param, dialogid, as string and not integer, so I went to a_samp.inc, and I've changed this lines:
Код:
native ShowPlayerDialog(playerid, dialogid[], style, caption[], info[], button1[], button2[]); forward OnDialogResponse(playerid, dialogid[], response, listitem, inputtext[]);
Код:
public OnDialogResponse(playerid, dialogid[], response, listitem, inputtext[])
Код:
ShowPlayerDialog(playerid, "24/7", DIALOG_STYLE_MSGBOX....
Does anyone have an idea about how to fix this if possible?
I'll rep you for sure, Thanks