Raised This Month: $51 Target: $400
 12% 

nfvault?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 05-03-2014 , 16:18   nfvault?
Reply With Quote #1

"TimeStamp" "1399107258"
;steamid ;ammopacks
"STEAM_0:1:40196572" "830"

how could save steamid with ammopacks with nfvault?
felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 05-03-2014 , 16:21   Re: nfvault?
Reply With Quote #2

Take a look at boxing mod script its saved by nfvault steam id
Freezo Begin is offline
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 05-03-2014 , 16:47   Re: nfvault?
Reply With Quote #3

Quote:
Originally Posted by Freezo Begin View Post
Take a look at boxing mod script its saved by nfvault steam id
can send?
felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 05-03-2014 , 16:57   Re: nfvault?
Reply With Quote #4

Search for boxing mod 2.0 take a example saving with nfvault

PHP Code:
Save(id) {
    new 
szKey[40]
    
formatex(szKey 39 "niveles")
    
    new 
data[16]
    
num_to_str(g_PlayerLevel[id], datasizeof(data) - 1)
    
    
nfv_set_data(VaultFileszKeyAuthID[id], data)
}

Load(id) {
    new 
szKey[40]
    
formatexszKey 39 "niveles" AuthID[id])
    
    new 
data[16]
    
nfv_get_data(VaultFileszKeyAuthID[id], datasizeof(data) - 1)
    
g_PlayerLevel[id] = str_to_num(data)


Last edited by Freezo Begin; 05-03-2014 at 16:58. Reason: i think nvault better and use name to save its better too
Freezo Begin is offline
felipemilralze
Senior Member
Join Date: Jul 2011
Location: Brazil
Old 05-03-2014 , 17:01   Re: nfvault?
Reply With Quote #5

Quote:
Originally Posted by Freezo Begin View Post
Search for boxing mod 2.0 take a example saving with nfvault

PHP Code:
Save(id) {
    new 
szKey[40]
    
formatex(szKey 39 "niveles")
    
    new 
data[16]
    
num_to_str(g_PlayerLevel[id], datasizeof(data) - 1)
    
    
nfv_set_data(VaultFileszKeyAuthID[id], data)
}

Load(id) {
    new 
szKey[40]
    
formatexszKey 39 "niveles" AuthID[id])
    
    new 
data[16]
    
nfv_get_data(VaultFileszKeyAuthID[id], datasizeof(data) - 1)
    
g_PlayerLevel[id] = str_to_num(data)

send the complete code
felipemilralze is offline
Send a message via MSN to felipemilralze Send a message via Skype™ to felipemilralze
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:49.


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