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
}
__________________