Mysql RegDate
#1

Hello how can i make a Registrations Date here ist my Register script:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 14600)
    {
       if(response)
       {
            if(!strlen(inputtext))
            {
                ShowPlayerDialog(playerid, 14600, DIALOG_STYLE_INPUT , "Register", "This account is not registered, please register!", "OK", "Cancel");
                SendClientMessage(playerid, 0xF60000AA, "Please enter a password");
            }
            mysql_real_escape_string(inputtext, escpass);
			WP_Hash(largestring, sizeof(largestring), escpass);
            GetPlayerIp(playerid, PIP, 50); 
            format(Query, sizeof(Query), "INSERT INTO `playerinfo` (`user`, `password`, `kills`, `deaths`, `score`, `money`, `IP`, `adminlvl`) VALUES ('%s', '%s', 0, 0, 0, 0, '%s', 0)", escpname(playerid), largestring, PIP);
            mysql_query(Query); 
            GameTextForPlayer(playerid, "~g~Registered", 2000, 3);
            SendClientMessage(playerid, 0x0000D9AA, "Registered and Logged into your account!");
            SetPVarInt(playerid, "Logged", 1);
        }
    }
I wnat only save the Registrations Date in the Mysql Databas from the player
Reply


Messages In This Thread
Mysql RegDate - by SanAndreasVille - 22.04.2012, 18:59
Re: Mysql RegDate - by Yako - 22.04.2012, 21:16
Re: Mysql RegDate - by SanAndreasVille - 22.04.2012, 21:28
Re: Mysql RegDate - by Yako - 22.04.2012, 22:19
Re: Mysql RegDate - by SanAndreasVille - 23.04.2012, 13:26
Re: Mysql RegDate - by SanAndreasVille - 23.04.2012, 16:00
Re: Mysql RegDate - by Claude - 23.04.2012, 16:28
Re: Mysql RegDate - by SanAndreasVille - 23.04.2012, 17:07
Re: Mysql RegDate - by AndreT - 23.04.2012, 17:21
Re: Mysql RegDate - by SanAndreasVille - 23.04.2012, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)