This is the start of the error
compile log:
src/zr/base/configmanager.inc(226):error 130:cannot coerce functions to values
src/zr/base/configmanager.inc(319):warning 219:local variable "result" shadows a variable at a preceding level
src/zr/base/configmanager.inc(406):error 130:cannot coerce functions to values
src/zr/base/configmanager.inc(431):error 130:cannot coerce functions to values
PHP Code:
// Write the config data to the module data arrays.
ConfigMgr_WriteCell(module, configindex, ConfigData_ReloadFunc, GetFunctionByName(GetMyHandle(), configreloadfunc));
ConfigMgr_WriteString(module, configindex, ConfigData_Path, CM_DATA_PATH, configpath);
I modified code:
PHP Code:
// Write the config data to the module data arrays.
new Function:ConfigMgr_WriteCell = GetNativeFunction(module, configindex, ConfigData_ReloadFunc, GetFunctionByName(GetMyHandle(), configreloadfunc));
Handle callbackConfigMgr_WriteCell = GetFunctionByName(module, configindex, ConfigData_ReloadFunc, GetFunctionByName(GetMyHandle(), configreloadfunc));
AddToConfigMgr_WriteCell(callbackConfigMgr_WriteCell, buildcallBack);
PushArrayCell(s_TimerData, p_CompleteCallback);
ConfigMgr_WriteString(module, configindex, ConfigData_Path, CM_DATA_PATH, configpath);
But I still have errors after I am modified.
Later, I deleted ''GetFunctionByName'' and added ''GetFunctionByName''.
PHP Code:
// Write the config data to the module data arrays.
new Function:ConfigMgr_WriteCell = GetNativeFunction(module, configindex, ConfigData_ReloadFunc, (GetMyHandle(), configreloadfunc));
Handle callbackConfigMgr_WriteCell = ConfigMgr_WriteCell(module, configindex, ConfigData_ReloadFunc, (GetMyHandle(), configreloadfunc));
AddToConfigMgr_WriteCell(callbackConfigMgr_WriteCell, buildcallBack);
PushArrayCell(s_TimerData, p_CompleteCallback);
ConfigMgr_WriteString(module, configindex, ConfigData_Path, CM_DATA_PATH, configpath);