31.01.2018, 18:05
Код:
"CREATE TABLE IF NOT EXISTS `players` (`ID` int(11) AUTO_INCREMENT, `Name` varchar(24) NOT NULL, `Passwrod`
Код:
INSERT INTO `players` (`ID`, `Name`, `Password
PHP код:
new query[712];
GetPlayerIp(playerid, PlayerInfo[playerid][IP], 16);
GetPlayerName(playerid, PlayerInfo[playerid][Name], MAX_PLAYER_NAME);
WP_Hash(PlayerInfo[playerid][Password], 129, inputtext);
mysql_format(g_Handle,query, sizeof(query), "INSERT INTO `players` (`ID`, `Name`, `Passwrod`, `IP`, `Admin`, `Money`, `Kills`, `Deaths`, `Scuicides`, `Skin`, `X`, `Y`, `Z`, `A`, `Interiour`) VALUES ('%i', '%e', '%e', '%e', 0, 0, 0, 0, 0, '%i', '%f', '%f', '%f', '%f', 0)",
PlayerInfo[playerid][ID],
PlayerInfo[playerid][Name],
PlayerInfo[playerid][Password],
PlayerInfo[playerid][IP],
PlayerInfo[playerid][Admin],
PlayerInfo[playerid][Money],
PlayerInfo[playerid][Kills],
PlayerInfo[playerid][Deaths],
PlayerInfo[playerid][Scuicides],
PlayerInfo[playerid][Skin],
PlayerInfo[playerid][P_X],
PlayerInfo[playerid][P_Y],
PlayerInfo[playerid][P_Z],
PlayerInfo[playerid][P_A],
PlayerInfo[playerid][Interior]);
mysql_tquery(g_Handle, query, "OnPlayerRegister", "d", playerid);