CallRemoteFunction - 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: CallRemoteFunction (
/showthread.php?tid=620915)
CallRemoteFunction -
HidroDF - 04.11.2016
Hello, I have a doubt. I have a Gamemode and some filterscripts. To let the filterscript "talk" with the gamemode I use in the filterscript the function CallRemoteFunction();
But my doubt is, can I call a function from the Gamemode written in the FS?
Example:
Gamemode:
Код:
CallRemoteFunction("CallMe", "is", 69, "this is a string");
Filterscript:
Код:
forward CallMe(number, const string[]);
public CallMe(number, const string[])
{
printf("CallMe called. Int: %i String: %s.", number, string);
return 1;
}
I am doing the process vice-versa calling the remotefunction from the fs but I want to know if doing the CallRemoteFunction from gamemode will call the function located at the Filterscript.
Thanks!
Re: CallRemoteFunction -
SickAttack - 04.11.2016
Quote:
Originally Posted by Wiki
Calls a public function in any script that is loaded.
|
4char