CallRemoteFunction

Tags:

Description

Calls a public function in any script that is loaded.

Name Description
function[] Public function's name.
format[] Tag/format of each variable
{Float,_}:... 'Indefinite' number of arguments of any tag

Returns

The value that the last public function returned.

Examples

forward CallMe(number, const string[]);
public CallMe(number, const string[])
{
    printf("CallMe called. Int: %i  String: %s.", number, string);
    return 1;
}

// Somewhere... in another file perhaps?
CallRemoteFunction("CallMe", "is", 69, "this is a string");

Notes

WARNING

CallRemoteFunction crashes the server if it's passing an empty string.

  • CallLocalFunction: Call a function in the script.