22.04.2012, 18:59
Hello how can i make a Registrations Date here ist my Register script:
I wnat only save the Registrations Date in the Mysql Databas from the player
Код:
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); } }