SA-MP Forums Archive
How to comunicate with a FS from another FS - 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 comunicate with a FS from another FS (/showthread.php?tid=339132)



How to comunicate with a FS from another FS - TzAkS. - 02.05.2012

I wan`t to make a FS and in that fs to use some other FS and i don`t know how can i comunicate with them.
The first FS is using one Dialog and from that dialog you can do everything,and in second FS i want to comunicate with that dialog.
I tryed to do something like this
Код:
ShowPlayerDialog(playerid, 3000.....);
3000 is DialogId from another fs but is not intercalated..any idea?


Re: How to comunicate with a FS from another FS - ViniBorn - 02.05.2012

pawn Код:
//OnDialogResponse
Returns Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.



Re: How to comunicate with a FS from another FS - TzAkS. - 02.05.2012

It`s working,Thanks.


Re: How to comunicate with a FS from another FS - ikey07 - 02.05.2012

CallRemoteFunction("OnDialogResponse","iiiis",play erid, dialogid, response, listitem, inputtext[]);

this could help, not sure if it will work, or make public OnDialogResponseEx and redirect it to FS OnDialogResponse.

Example

pawn Код:
CallRemoteFunction("OnDialogResponseEx","iiiis",playerid, dialogid, response, listitem, inputtext[]);


public OnDialogResponseEx(playerid, dialogid, response, listitem, inputtext[])
{
OnDialogResponse(playerid, dialogid, response, listitem, inputtext);
return 1;
}



Re: How to comunicate with a FS from another FS - TzAkS. - 02.05.2012

Not sure for that.
Thanks anyway,fixed with return 0; to OnDialogResponse