Raised This Month: $ Target: $400
 0% 

Vaults and such


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lt Llama
Senior Member
Join Date: Aug 2004
Old 08-15-2004 , 18:26   hmmm #2
Reply With Quote #5

I found this thread and thought it might be a way to handle my plugin request.

I want it to read and write to the vault file. This piece of code compiles but i get a bad load.
L 08/15/2004 - 22:55:01: [AMXX] Plugin file open error (plugin "firstvisit").

Are there any obvious errors in the code that you can see?

Code:
#include <amxmodx> #include <vault> public plugin_init(){     register_plugin("First Visit","0.1","originally tla-nick") } /* store client's name in vault, indexed by authid, if they already have name in vault, extract it first */ public storeName(id) {   new newName[32], oldName[32], authid[32]   get_user_name(id,newName,31)   get_user_authid(id,authid,31)   if (vaultdata_exists(authid))     get_vaultdata(authid,oldName,31)   set_vaultdata(authid,newName)   return PLUGIN_CONTINUE } /* remove client data from vault on disconnect */ public client_disconnect(id) {   new authid[32]   get_user_authid(id,authid,31)   if (vaultdata_exists(authid))     remove_vaultdata(authid)   return PLUGIN_CONTINUE }
Lt Llama 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 07:03.


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