Ty for a good answer, but it doesn't work.
Quote:
Originally Posted by Bugsy
When did you check your vault for data and what did you use to check it?
If you check the vault immediately after using a set command then you will not see the entry in your vault file. You must either do a map-change or restart the server for the data to get written to the vault file.
nVault is very simple to use; as long as your nvault file opens without error then your data should be getting written with nvault_set\nvault_pset. If you have any questions feel free to ask.
Look at the 2nd nvault_set, you need to change the szXP variable to szLevel and possibly PlayerClass[] to something else. Someone was copy and pasting
PHP Code:
formatex( szKey , 39 , "%s-%i-XP" , g_szAuthID[id], PlayerClass[id] ); formatex( szXP , 6 , "%d" , PlayerXP[id] ); nvault_set( g_Vault ,szKey , szXP ); formatex( szKey , 39 , "%s-%i-Level" , g_szAuthID[id], PlayerClass[id] ); //Change variables? formatex( szLevel , 6 , "%d" , PlayerLevel[id] ); nvault_set( g_Vault ,szKey , szXP ); //Change szXP to szLevel?
|
I checked after restart and mapchange, but there is nothing. (I use nVault-editor)
Actually, I did copy-paste from nVault tutorial bc I though, then it would work

- and it's on purpose that its PlayerClass[id] both times, bc it should save xp and level for a certain class

and ty for correcting my szXP
I really need some help

and I would really appreciate if you could take a look at my code and correct it - or guide me like you did in this post
Regards
ReTaRD