15.09.2016, 17:16
(
Последний раз редактировалось quochuy; 15.09.2016 в 19:14.
)
- Dialog reg
- Error
PHP код:
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
}
PHP код:
\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
PHP код:
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]);