23.04.2012, 16:00
i have now
and in the register:
what is wrong, before the getdate script, It was working 100 percent
Код:
mysql_query("CREATE TABLE IF NOT EXISTS playerinfo(user VARCHAR(24), password VARCHAR(400),killss INT(20),deaths INT(20), score INT(20), money INT(20), IP VARCHAR(16),adminlvl INT(5),hoursplayed INT(20), minutesplayed INT(20),ratio VARCHAR(5),regdate VARCHAR(10))"); mysql_debug(1);
Код:
new year, month, day; getdate(year, month, day); 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`, `killss`, `deaths`, `score`, `money`, `IP`, `adminlvl`,`ratio`, `regdate`) VALUES ('%s', '%s', 0, 0, 0, 0, '%s', 0,'%f','%s','%d/%d/%d')", escpname(playerid), largestring, PIP,(Float:PlayerInfo[playerid][killss] / Float:PlayerInfo[playerid][deaths]),day,month,year); mysql_query(Query);