JrC
|
分享:
▼
x0
|
[1.6][插件] Nvault 儲存問題!!!源碼..
請問我的儲存及載入資料有什麼問題? public SaveData(id) { new name[32], vaultkey[64], vaultdata[256] get_user_name(id, name, 31) format(vaultkey, 63, "%s", name) format(vaultdata, 255, "%i#%i#%i#", g_pret[id], g_ak4760r[id], g_ncpts[id]) nvault_set(g_vault, vaultkey, vaultdata) client_print(id, print_chat, "保存記錄成功") }
public LoadData(id) { new name[32], vaultkey[64], vaultdata[256] get_user_name(id,name,31) format(vaultkey, 63, "%s", name) format(vaultdata, 255, "%i#%i#%i#", g_pret[id], g_ak4760r[id], g_ncpts[id])
nvault_get(g_vault, vaultkey, vaultdata, 255) replace_all(vaultdata, 255, "#", " ") new pret[32], ak4760r[32], ncpts[32] parse(vaultdata, pret, 31, ak4760r, 31, ncpts, 31)
g_pret[id] = str_to_num(pret) g_ak4760r[id] = str_to_num(ak4760r) g_ncpts[id] = str_to_num(ncpts)
return PLUGIN_CONTINUE }
[ 此文章被JrC在2011-12-14 17:41重新編輯 ]
此文章被評分,最近評分記錄財富:500 (by ChaosX) | 理由: 上次誤扣的 | |
|
|
|