SA-MP Forums Archive
double public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) - 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: double public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) (/showthread.php?tid=474372)



double public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) - TiXz0r - 07.11.2013

is possible have two public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])? i want try something


Re: double public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) - Jstylezzz - 07.11.2013

In the same script? No. If you have one in your main mode, one in the filterscript 'somescript.pwn', and one in 'anotherscript.pwn', then yes. You can't have multiple publics with exact the same name in the same script.

If you do use multiple publics with the same name in the same script, you'll probably get an error saying that you already have 'defined' the function.