|
发表于 2009-7-19 01:02:36
|
显示全部楼层
来自 中国–广东–惠州–惠城区
记录致命错误日志是很容易的,几行代码搞掂
- #include <amxmodx>
- #include <amxmisc>
- #include <fakemeta>
- #define PLUGIN_NAME "server error log"
- #define PLUGIN_VERSION "1.0"
- #define PLUGIN_AUTHOR "zwfgdlc"
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
- register_forward(FM_Sys_Error,"fw_Sys_Error");
- }
- public fw_Sys_Error(const ErrorInfo[])
- {
- log_to_file("ServerError.txt",ErrorInfo);
- }
复制代码 |
|