Well guys. Hello first of all.
I was stating some help on this issue long ago. I thought to solve it in a while, but enrealidad make things worse.
So maybe coming this raises many pass through here! but do not let solution. I just want some help. They have helped me many times since I started here but hey, so I learned not?.
He needed something like this:
For example, I asked that I moved out to a code of fVault SQLx ...
I think there is much to ask, but I wanted that someone who knows what is just and necessary and for giving me this I would come to 10.
JUST ASK A SIMPLE CODE.
If in case I get to leave the solution, I would ask them to leave me (if you can, but enough with the code, then I'll see to know that everything is) leave me a brief explanation. BUT! I do not believe that explanation no longer believe that will be as the text inside the parentheses.
I just need this code in SQLx, then I'll take care of the LOAD and SAVE by SQLx.
The code is this:
It is the code for the tutorial KISKE in which he puts to create ACCOUNTS:
PHP Code:
public clcmd_enter_password(id)
{
read_args(g_password[id], charsmax(g_password[ ]))
remove_quotes(g_password[id])
trim(g_password[id])
if(equal(g_password[id], "") || contain(g_password[id], " ") != -1) return PLUGIN_HANDLED;
else if(g_bad_password[id])
{
static szData[512], szName[32], VAULT_Password[191]
get_user_name(id, szName, 31)
if(!fvault_get_data(vault, szName, szData, charsmax(szData))) return 0;
parse(szData, VAULT_Password, 190)
if(equal(g_password[id], VAULT_Password))
{
client_cmd(id, "setinfo _pass ^"%s^"", g_password[id])
g_bad_password[id] = 0
load_data_db(id)
g_passwordT[id] = g_password[id]
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
else
{
client_cmd(id, "setinfo _pass ^"%s^"", g_password[id])
Registrado[id] = 1
static szName[32], szData[512]
get_user_name(id, szName, 31)
formatex(szData, charsmax(szData), "%s %d", g_password[id], g_ammopacks[id])
fvault_set_data(vault, szName, szData)
g_passwordT[id] = g_password[id]
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
Sorry for my bad english!
__________________