Raised This Month: $ Target: $400
 0% 

NVault doens't work :/ Won't save.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-01-2010 , 16:53   Re: Parse variable - HELP? Argument type mismatch
Reply With Quote #5

Essentially the same but give it a try, Ill take a closer look when I get home, Im on my phone now. Untested

Code:
#include < amxmodx > #include < amxmisc > #include < nvault > enum _:VaultData {     VAULT_KEY[ 32 ],  //change to max key length     VAULT_DATA[ 32 ]  //..max data len }; new g_iVault; public plugin_init( ) {     register_concmd( "amx_changerule", "ConsoleCommand_ChangeRule", ADMIN_KICK ); // change to whatever suits you } public ConsoleCommand_ChangeRule( iClient, iLevel, iCid ) {     if( !cmd_access( iClient, iLevel, iCid, 3 ) )     {         return;     }     new szVaultData[ VaultData ];         read_argv( 1, szVaultData[ VAULT_KEY ] , charsmax( szVaultData[] ) );     read_argv( 2, szVaultData[ VAULT_DATA ] , charsmax( szVaultData[] ) );         nvault_pset( g_iVault, szVaultData[ VAULT_KEY ], szVaultData[ VAULT_DATA ] ); }
__________________

Last edited by Bugsy; 03-01-2010 at 17:36.
Bugsy is offline
 



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 08:45.


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