SA-MP Forums Archive
how to put return cmd(playerid, params); in ondialogresponse? - 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 to put return cmd(playerid, params); in ondialogresponse? (/showthread.php?tid=394603)



how to put return cmd(playerid, params); in ondialogresponse? - niels44 - 23.11.2012

hey everybody,

how can i put
pawn Код:
return cmd_lsa(playerid, params);
in ondialogresponse? cuz everytime i do that it says undefined symbol "params"...

greets niels


Re: how to put return cmd(playerid, params); in ondialogresponse? - JaKe Elite - 23.11.2012

pawn Код:
return cmd_lsa(playerid, "");
There is no params parameter in OnDialogResponse.


Re: how to put return cmd(playerid, params); in ondialogresponse? - niels44 - 23.11.2012

and this wont cause any trouble, this will work?


Re: how to put return cmd(playerid, params); in ondialogresponse? - Jarnu - 23.11.2012

Indeed it will work OnDialogResponse have no params for returning cmd.


Re: how to put return cmd(playerid, params); in ondialogresponse? - niels44 - 23.11.2012

but do i have to put anything between the ""?


Re: how to put return cmd(playerid, params); in ondialogresponse? - Jarnu - 23.11.2012

No. You don't have to.


Re: how to put return cmd(playerid, params); in ondialogresponse? - Twisted_Insane - 23.11.2012

Just look at the function of "OnDialogResponse"; unless there won't be any "params" included, simply put in what Jarnu said: " "

Remember; this rule takes place for ANY function which doesn't include "params"!