AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help ME! Translate fVault >> SQLx (https://forums.alliedmods.net/showthread.php?t=134730)

Celeron 08-08-2010 02:59

Help ME! Translate fVault >> SQLx
 
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(idszName31)
        
        if(!
fvault_get_data(vaultszNameszDatacharsmax(szData))) return 0;
        
        
parse(szDataVAULT_Password190)
        
        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(idszName31)
        
        
formatex(szDatacharsmax(szData), "%s %d"g_password[id], g_ammopacks[id])
        
fvault_set_data(vaultszNameszData)
        
        
g_passwordT[id] = g_password[id]
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;


Sorry for my bad english!


All times are GMT -4. The time now is 00:13.

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