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) | 理由: 上次误扣的 | |
|
|
|