Raised This Month: $ Target: $400
 0% 

nvault need answers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-26-2010 , 10:09   Re: nvault need answers
Reply With Quote #1

You may need to use 2+ formatex calls.
PHP Code:
new iPos formatexszVar charsmaxszVar ) , "%d%d" variables );
//repeat the below line as needed
iPos += formatexszVariPos ] , charsmaxszVar ) - iPos "%d%d" variables ); 
__________________
Bugsy is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 11-26-2010 , 10:24   Re: nvault need answers
Reply With Quote #2

Quote:
Originally Posted by Bugsy View Post
You may need to use 2+ formatex calls.
PHP Code:
new iPos formatexszVar charsmaxszVar ) , "%d%d" variables );
//repeat the below line as needed
iPos += formatexszVariPos ] , charsmaxszVar ) - iPos "%d%d" variables ); 
can u please show an example to use this method.

i tried but failed.

but also will this work if set by client cmd? on each data? money, achvs 1, achvs 2, etc. ???
PHP Code:
public SaveMoney(id)
{
    new 
vaultkey[64]
    new 
vaultdata[256]
    
    
format(vaultkey,63,"%s-CSOPH",g_szAuthID[id])
    
format(vaultdata,255,"%i#%i#",PlayerstoreGASH[id],PlayerstoreCASH[id])
    
nvault_set(g_vault,vaultkey,vaultdata)
    
    return 
PLUGIN_CONTINUE

edit i removed some unneed stuff now maybe 12 can fit in one line.
__________________

Last edited by jc980; 11-26-2010 at 11:23.
jc980 is offline
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:21.


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