最近搞了個終極魔獸插件來玩...可是好像不能save喔...有人知道為什麼嗎?..
我有改cfg的...
複製程式
// 數據經驗保存位置
uwc3ng_savexp_sql "1" // 0 = MySQL, 1 = SQLITE
// 數據經驗保存方式
uwc3ng_save_by "2" // 0 = SteamID, 1 = IP, 2 = Name
// SQL 數據庫配置
uwc3ng_host "localhost" // 主機地址
uwc3ng_user "root" // 用戶名
uwc3ng_pass "" // 密碼。
uwc3ng_name "" // 數據庫名稱
inl我也改了..
複製程式
public Load_Cvars()
{
// Uwc3ng enabled or disabled?
uwc3ng_enabled = register_cvar ( "uwc3ng_enabled", "1" );
// Where we save the xps and skills etc?
CVAR_uwc3ng_savexp = register_cvar ( "uwc3ng_savexp_sql", "1" ); // 0 = MySQL, 1 = SQLLITE
// Should we save the xps?
CVAR_uwc3ng_save_xp = register_cvar ( "uwc3ng_save_xp", "1" ); // 1 = enabled, 0 = disabled
// How should we save the xps?
CVAR_uwc3ng_save_by = register_cvar ( "uwc3ng_save_by", "2" ); // 0 = SteamID, 1 = IP, 2 = Name
// SQL cvars
CVAR_uwc3ng_host = register_cvar ( "uwc3ng_host", "localhost" ); // The host from the db
CVAR_uwc3ng_user = register_cvar ( "uwc3ng_user", "root" ); // The username from the db login
CVAR_uwc3ng_pass = register_cvar ( "uwc3ng_pass", "" ); // The password from the db login
CVAR_uwc3ng_name = register_cvar ( "uwc3ng_name", "" ); // The database name
可是還是保存不了
有人能教教我嗎..