23.07.2015, 22:40
Well it's not saving correcly
Name, Password, Age, Gender, Skin, Level, Money is saving good, but IP and Email not...
PHP код:
new query[1500];
mysql_real_escape_string(pInfo[playerid][Nick], pInfo[playerid][Nick]);
mysql_real_escape_string(pInfo[playerid][IP], pInfo[playerid][IP]);
format(query, sizeof(query), "INSERT INTO `playerdata` (`nick`, `password`, `ip`, `age`, `gender`, `skin`, `email`, `score`, `money`) VALUES('%s', '%d', '%s', '%d', '%d', '%d', '%d', '%d', '%d')",
GetName(playerid),
udb_hash(inputtext),
pInfo[playerid][IP],
pInfo[playerid][Age],
pInfo[playerid][Gender],
pInfo[playerid][Skin],
pInfo[playerid][Email],
StarterLevel,
StarterMoney);
mysql_query(query);
}