PHP Code:
public void OnPluginStart()
{
ArrayList a = new ArrayList();
Function f = GetFunctionByName(GetMyHandle(), "OnPluginStart");
// error 130: cannot coerce functions to values
a.Push(f);
// warning 237: coercing functions to and from primitives is unsupported
// and will be removed in the future
a.Push(view_as<int>(f));
}
Are you seriously? Is that really all I can do? :
PHP Code:
public void OnPluginStart()
{
ArrayList a = new ArrayList();
Function f = GetFunctionByName(GetMyHandle(), "OnPluginStart");
DataPack pack = new DataPack();
pack.WriteFunction(f);
a.Push(pack);
}
Very sad