SA-MP Forums Archive
Communication gamemode <> filterscript - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Communication gamemode <> filterscript (/showthread.php?tid=163703)



Communication gamemode <> filterscript - matejdro - 28.07.2010

Is there any way gamemode and filterscript could "communicate" with each other? For example i have variable in gamemode and i want to access it from filterscript.


Re: Communication gamemode <> filterscript - Mauzen - 28.07.2010

There are too ways to communicate:

Playervariables, so you can have global Variables for every player.

and

CallRemoteFunction, with this you can call functions in the gamemode from your fs and vice versa, so you could "send" variables as parameters.


Re: Communication gamemode <> filterscript - matejdro - 28.07.2010

Thanks for your answer.

About CallRemoteFunction, does it use global variables from source script or caller script?


Re: Communication gamemode <> filterscript - Mauzen - 28.07.2010

No problem,

If you call a remote function, the called function uses only the variables of the script the function is in and those you submitted as paramers, if you mean this.


Re: Communication gamemode <> filterscript - matejdro - 28.07.2010

Yes i mean this. Thank you.