麻烦帮忙看看 错在哪里了 谢谢了
G:\Server\php437r1>php.exe -q g:\server\apache\htdocs\ucstats\statsd.php 127.0.0.1 27000=============================================================
UCStats version 1.0
Copyright (c) 2004 Mike Cao
=============================================================
Loading registered servers...
- nocopyright (127.0.0.1:27015)
Found 1 server(s).
Creating UDP socket...
<br />
<b>Fatal error</b>:Call to undefined function:socket_create() in <b>g:\serve
r\apache\htdocs\ucstats\statsd.php</b> on line <b>144</b><br />
另外请教个问题 教程上说的udp模块指的是什么?可以去哪里获得? 谢谢大家了
win32 addons/wwcl/dlls/wcfg_mm.dll
win32 addons/booster/booster_mm.dll
win32 addons/statsme/dlls/statsme_mm.dll
//win32 addons/cdeath/cdmod.dll
win32 addons/amx/dlls/amx_mm.dll
win32 addons/amx/dlls/csstats_ms.dll
win32 addons/amx/dlls/fun_ms.dll
win32 addons/amx/dlls/logd_ms.dll
//win32 addons/amx/dlls/mysql_ms.dll
win32 addons/amx/dlls/udp_ms.dll 你的UDP口不对。
一个27000一个27015。
我记得还要
logaddress 的。 :thefinger 我在server.cfg里面和autoexec.bat添加了log onlogaddress 127.0.0.1 27000了 排行榜要怎么样才能接受服务器的数据?
Loading registered servers...
- Nocopy (202.105.42.144:27015)
Found 1 server(s).
Creating UDP socket...
Binding socket to 202.105.42.144 on port 27000...
Socket open and ready to receive.
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 2
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 2
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 1
EXEC 0
这样正常吗? Post by xjflyttp
我在server.cfg里面和autoexec.bat添加了log onlogaddress 127.0.0.1 27000了 排行榜要怎么样才能接受服务器的数据?
Loading registered servers...
- Nocopy (202.105.42.144:27015)
Found 1 server(s).
Creating UDP socket...
Binding socket to 202.105.42.144 on port 27000...
Socket open and ready to receive.
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 2
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 2
EXEC 0
Added a new job with job ID = 1
EXEC 0
Added a new job with job ID = 1
EXEC 0
这样正常吗?
这个是正常的,另外UDP是在AMX的modules.ini中加载的,
; AMX Modules
; You can specify both linux & win32 modules here
;AMX模块加载脚本,请将要加载的amx模块的路径按照下面的格式写入就可以正常加载了。
; CS Stats
; must be declarated in MetaMod and AMX
addons/amx/dlls/csstats_ms.dll
; More functions for modifications in HL
; must be declarated in MetaMod and AMX
addons/amx/dlls/fun_ms.dll
; MySQL access
;addons/amx/dlls/mysql_ms.dll
;Rcon and Query
addons/amx/dlls/udp_ms.dll
你的第一问的错误要在PHP.INI中找到;extension=php_sockets.dll,去掉前面的;然后找到php_sockets.dll复制到
extension_dir = 后面设定的目录.
下面是正确的启动信息
Loading registered servers...
- 192.168.0.3 (192.168.0.3:27015)
- 192.168.0.3 (192.168.0.3:27016)
Found 2 server(s).
Creating UDP socket...
Binding socket to 192.168.0.3 on por
Socket open and ready to receive. 谢谢哥哥 我已经按照你的做个 但是排行榜好像没有更新数据
是不是需要手动更新的? 教程上面没有讲到 麻烦赐教 :1::1:
win32 addons/wwcl/dlls/wcfg_mm.dll
win32 addons/booster/booster_mm.dll
win32 addons/statsme/dlls/statsme_mm.dll
win32 addons/amx/dlls/amx_mm.dll
win32 addons/amx/dlls/csstats_ms.dll
win32 addons/amx/dlls/fun_ms.dll
win32 addons/amx/dlls/udp_ms.dll
//win32 addons/amx/dlls/mysql_ms.dll
//win32 addons/cdeath/cdmod.dll
//win32 addons/amx/dlls/logd_ms.dll
----------------------------------------------------------
10.编译 plugins文件夹中的ucstats_cstrike.sma并安装到AMX中.
----------------------------------------------------------
怎么样才能编译这个.sma文件? 有没有什么工具的?
已经弄好了。。。谢谢大家的帮助 :76::76::76::5::5::5: AMX的examples目录下的sc.exe程序来编译sma程序。 :thefinger ucstats_cstrike.sma
ucstats_live.sma
这两个文件是直接编译 还是要改什么东西以后在编译? Last updated: Thursday 01/01/1970 - 8:00 am
287 root localhost:3309 ucstats Sleep 218 --- ---
这个是phpadmin 显示的 排行榜没有写入的动作是正常的嘛?
页:
[1]