Change ShowPlayerDialog params?
#1

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:
Код:
native ShowPlayerDialog(playerid, dialogid[], style, caption[], info[], button1[], button2[]);
forward OnDialogResponse(playerid, dialogid[], response, listitem, inputtext[]);
And on my gamemode I've changed the OnDialogResponse to:
Код:
public OnDialogResponse(playerid, dialogid[], response, listitem, inputtext[])
I think that with this changes it should now handle strings with no problem, but when I show a dialog like this:
Код:
ShowPlayerDialog(playerid, "24/7", DIALOG_STYLE_MSGBOX....
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
Reply


Messages In This Thread
Change ShowPlayerDialog params? - by mati233 - 30.06.2012, 02:57
Re: Change ShowPlayerDialog params? - by CoaPsyFactor - 30.06.2012, 03:05
Re: Change ShowPlayerDialog params? - by [KHK]Khalid - 30.06.2012, 03:06
Re: Change ShowPlayerDialog params? - by MP2 - 30.06.2012, 03:26
Re: Change ShowPlayerDialog params? - by mati233 - 30.06.2012, 03:30

Forum Jump:


Users browsing this thread: 1 Guest(s)