Raised This Month: $ Target: $400
 0% 

Vault, help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-23-2005 , 07:49   Vault, help?
Reply With Quote #1

Alright, I've given up on MySQL totally.. Now here's my little test thing-a-ma-do.. But whenever I say "vault_test", it always comes up with "Vault data entered!". What I'm trying to do is check and see if the current data exists in the file, if it doesn't, then it enters a new line or whatever; if it does, it won't touch the current data. Thanks for the help. ;)
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Vault data test","0.1","v3x")     register_clcmd("say vault_test","Vault_Test") } public Vault_Test(id) {     new authID[30]     get_user_authid(id,authID,29)     new name[33]     get_user_name(id,name,32)     new vData[78]     format(vData,77,"%s_%s_1337",authID,name)     if(!vaultdata_exists(vData)) {         set_vaultdata(vData)         client_print(id,print_chat,"Vault data entered!")     }     else if(vaultdata_exists(vData)) {         //set_vaultdata(vData2)         client_print(id,print_chat,"Vault data already exists!")     }     return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 09:55.


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