case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(strlen(inputtext) < 5)
{
SendClientMessage(playerid, -1, "Your password must at least contain more than 4 characters.");
return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register", "Welcome player!\nYour account has not been registered yet. Please fill in your desired password:", "Register", "Quit");
}
new
combination[1604];
WP_Hash(PlayerInfo[playerid][pPassword], 129, inputtext);
mysql_format(sqlHandle, combination, sizeof(combination), "INSERT INTO `samp_users` (`user`,`password`, `money`, `skin`, `age`, `ip`, `bank`, `health`, `armour`, `gender`, `banned`, `score`, `faction`,`rank`,`drivelic`, `pAJCPs`, `weaponlic`,`7clips`,`rounds`,`weapon`, `ammo`, `weaponinv`, `invammo`,`number`,`fish`,`job`,`modlevel`,`paycheck`,`30clips`,`weaponinv2`,`invammo2`,`jobtime`,`arresttime`,`PayTimer`,`dice`,`staffpassword`,`bankcard`,`bankorderscore`,`gascan`,`gasliters`,`radioobj`,`notepad`,`cigarettes`,`lighter`,`52card`,`badge`,`weaponinv3`,invammo3,`weaponinv4`,`invammo4`,`pDisX`,`pDisY`,`pDisZ`,`pDisA`,`pDisInt`,`pDisVW`,`pTrainticket`,`spawnLoc`,`pForumName`,`pFine`,`pSavings`,`pTaxiLic`,`pAirplaneLic`,`duty`,`namechanges`,`weed`,`cocaine`,`ecstasy`,`crack`,`heroin`,`weed-seeds`,`opium-seeds`,`fertilizer`,`raw-opium`,`cuffed`,`donate-rank`,`donate-year`,`donate-month`,`donate-day`,`carbomb`,`scrap-wait`,`loaned`,`lostasya`,`maskID`,`prisoned`,`prison-time`,`swat`,`swat-cooldown`,`weed-a`,`coke-a`,`ecstasyncash-a`,`crack-a`,`heroin-a`,`freq`,`activated`,`chongmat`,`chaymau`,`gaychan`,`xcoin`,`daquy`,`NMute`,`helper`,`renthouse`) VALUES('%e', '%e', 400, %i, 20, '%e', 2000, 100.0, 0.0, 1, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", PlayerInfo[playerid][pName], PlayerInfo[playerid][pPassword], GM_STD_SKIN, PlayerInfo[playerid][pIP]);
//mysql_format(sqlHandle, query, sizeof(query), "INSERT INTO `samp_users` (`user`, `password`, `money`, `skin`, `age`, `ip`, `bank`, `health`, `armour`, `gender`) VALUES ('%e', '%e', 400, %i, 20, '%e', 2000, 100.0, 0.0, 1)", PlayerInfo[playerid][pName], PlayerInfo[playerid][pPassword], GM_STD_SKIN, PlayerInfo[playerid][pIP]);
mysql_function_query(sqlHandle, combination, false, "", "");
SendPlayerToCharacterCreation(playerid); // sends
}
\Server\gamemodes\gamemode.pwn(59879) : error 075: input line too long (after substitutions)
\Server\gamemodes\gamemode.pwn(59880) : error 037: invalid string (possibly non-terminated string)
\Server\gamemodes\gamemode.pwn(59880) : error 017: undefined symbol "INSERT"
\Server\gamemodes\gamemode.pwn(59880) : error 017: undefined symbol "INTO"
\Server\gamemodes\gamemode.pwn(59880) : fatal error 107: too many error messages on one line
mysql_format(sqlHandle, combination, sizeof(combination), "INSERT INTO `samp_users` (`user`,`password`, `money`, `skin`, `age`, `ip`, `bank`, `health`, `armour`, `gender`, `banned`, `score`, `faction`,`rank`,`drivelic`, `pAJCPs`, `weaponlic`,`7clips`,`rounds`,`weapon`, `ammo`, `weaponinv`, `invammo`,`number`,`fish`,`job`,`modlevel`,`paycheck`,`30clips`,`weaponinv2`,`invammo2`,`jobtime`,`arresttime`,`PayTimer`,`dice`,`staffpassword`,`bankcard`,`bankorderscore`,`gascan`,`gasliters`,`radioobj`,`notepad`,`cigarettes`,`lighter`,`52card`,`badge`,`weaponinv3`,invammo3,`weaponinv4`,`invammo4`,`pDisX`,`pDisY`,`pDisZ`,`pDisA`,`pDisInt`,`pDisVW`,`pTrainticket`,`spawnLoc`,`pForumName`,`pFine`,`pSavings`,`pTaxiLic`,`pAirplaneLic`,`duty`,`namechanges`,`weed`,`cocaine`,`ecstasy`,`crack`,`heroin`,`weed-seeds`,`opium-seeds`,`fertilizer`,`raw-opium`,`cuffed`,`donate-rank`,`donate-year`,`donate-month`,`donate-day`,`carbomb`,`scrap-wait`,`loaned`,`lostasya`,`maskID`,`prisoned`,`prison-time`,`swat`,`swat-cooldown`,`weed-a`,`coke-a`,`ecstasyncash-a`,`crack-a`,`heroin-a`,`freq`,`activated`,`chongmat`,`chaymau`,`gaychan`,`xcoin`,`daquy`,`NMute`,`helper`,`renthouse`) VALUES('%e', '%e', 400, %i, 20, '%e', 2000, 100.0, 0.0, 1, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", PlayerInfo[playerid][pName], PlayerInfo[playerid][pPassword], GM_STD_SKIN, PlayerInfo[playerid][pIP]);
INSERT INTO `samp_users` (`user`, `password`, `money`, `skin`, `age`, `ip`, `bank`, `health`, `armour`, `gender`, `banned`) VALUES ('Dung_Duatao', '21D5CB651222C347EA1284C0ACF162000B4D3E34766F0D00312E3480F633088822809B6A54BA7EDFA17E8FCB5713F8912EE3A218DD98D88C38BBF611B1B1ED2B', 400, 240, 20, '127.0.0.1', 2000, 100.0, 0.0, 1, 0)
The problem here is that you're not assigning the Banned field value in the MySQL table, and it doesn't have any pre-set value (you set it when you're creating the field), so the server doesn't know what to do with that field. Let's just set banned to 0.
pawn Код:
|
- Dialog reg
PHP код:
PHP код:
PHP код:
|