AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   vault to nvault (https://forums.alliedmods.net/showthread.php?t=55837)

XxUndeadSniperxX 05-31-2007 09:10

vault to nvault
 
I want to change my saving method to from vault to nvault, but I don't know how.
Can anyone "convert" this code for me?
I don't know exactly if this code compiles, but I guess you catch my point.

Code:
Data_Save(id) {     new authid[32], vaultkey[64], vaultdata[128]         get_user_authid(id, authid, 31)     format(vaultkey, 63, "Omg-%s", authid)     format(vaultdata, 127, "%d %d", var1[id], var2[id])     set_vaultdata(vaultkey, vaultdata) } Data_Load(id) {     new authid[32], vaultkey[64], vaultdata[128], temp_var1[3], temp_var2[3]     get_user_authid(id, authid, 31)     format(vaultkey, 63, "Omg-%s", authid)     get_vaultdata(vaultkey, vaultdata, 127)         parse(vaultdata, temp_var1, 2, temp_var2, 2)     var1[id] = str_to_num(temp_var1)     var2[id] = str_to_num(temp_var2) }

XxUndeadSniperxX 05-31-2007 09:38

Re: vault to nvault
 
Thanks, but you don't parse the data when it's loaded.
And why do you suddenly use "karma[id]" instead? :P

Alka 05-31-2007 09:39

Re: vault to nvault
 
I don't know how to get 2nd value from that line! :)...

XxUndeadSniperxX 06-02-2007 06:43

Re: vault to nvault
 
Still need help with this... Anyone?


All times are GMT -4. The time now is 10:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.