uuu 发表于 2004-8-7 23:47:49

有关读取XP值的问题

我用的是AMX1.6.6版的war3,但我在游戏中savexp后再进,刚暴保存的XP值却显示为0
注:我有打开所有modules,及mysql。
设置文件我是这样设的:
mp_savexp 1                                // Enables saving of experience (uses a vault, default is 0)
sv_mysql 0                                // this will save w/MySQL (note: to use this mp_savexp must also be 1, default is 0)
FT_saveby 0                                // What should I save this as?steam id = 0, IP = 1, name = 2 (works for vault and mysql, default is 0)

// MySQL configuration
FT_mysql_host "127.0.0.1"                // Host Name
FT_mysql_user "root"                        // User Name
FT_mysql_pass ""                        // Password
FT_mysql_db ""                        // Database Name
sv_mysql_auto_pruning 0                        // Automatically prunes the database of old users at a mapchange occuring between 5:36 to 5:59 AM (default is 0, doesn't work for vault)
sv_daysbeforedelete 31                        // However many days before deleting XP or pruning from MySQL database (default is 31)
sv_mysqltablename "war3users"                // Table Name, no need to change (default is war3users)
sv_mysql_save_end_round 0       



我觉得是mysql的问题

lxyzmxcssa 发表于 2004-8-7 23:48:52

我不会。。

nwb13 发表于 2004-8-8 00:03:49

sv_mysql 1
FT_mysql_db "war3users"
试试看
页: [1]
查看完整版本: 有关读取XP值的问题