|
发表于 2005-6-5 11:52:09
|
显示全部楼层
来自 中国–广东–佛山–禅城区
安装ps.amxx后,设置好ps.cfg,重启hlds,说连接linux(ps安装在这台机)的mysql出错,没法连接,这是我的ps.cfg设置,还有sql.cfg的设置
ps_db_host "192.168.1.10"
ps_db_user "root"
ps_db_pass "qqcancel"
ps_db_name "ps2"
ps_db_plrtable "pstats"
// defines how players are matched in the database when performing
// searches (for setting passwords, usernames, accesslevels and /psrank)
// Valid options: worldid, name, ipaddr
ps_uniqueid "name"
// URL the plugin will tell people to go to, to view thier stats.
// Do not include 'index.php'.
ps_stats_url ""
// URL used by the in-game triggers.
// You do not need to set this if it's the same as ps_stats_url
// Do not include index.php, just the URL up to that file.
ps_rank_url ""
// Password that must be used with ps_setadmin to give yourself
// admin level on the stats
ps_admin_password "ldwl"
// 1=on, 0=off - logs IPs on connect and disconnect reliably,
// will be used for IP tracking
ps_logip "1"
// 1=on, 0=off - overrides the normal /stats,/rank,etc triggers
// and displays your psychostats pages instead. With this off
// the triggers are /psstats,/psrank, etc.
// NOT FUNCTIONAL YET
ps_rank_override "0"
//Triggers for popup windows are as follows
// - /psrank
// - /pstop10
// - /psstats
// - /search
// SQL数据库设置文件
; 文件位置: HL或HL的MOD/addons/amxx/configs/sql.cfg
// *注意* Linux系统的用户请将 "localhost" 改为 "127.0.0.1"
// 我们建议你使用你的服务器IP作名字
amx_sql_host "192.168.1.10"
amx_sql_user "root"
amx_sql_pass "qqcancel"
amx_sql_db "ps2"
amx_sql_table "pstats" |
|