19.04.2014, 22:41
pawn Код:
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
new query[256], password[50];
mysql_real_escape_string(inputtext, password);
format(query, sizeof(query), "INSERT INTO `users` (`username`, `password`, `money`, `skin`) VALUES (`%s`, `%s`, `%d`, `%d`)", GetPName(playerid), password, 10000, 23);
mysql_query(query);
new str[128];
format(str, sizeof(str), "(INFO){FFFFFF} You have successfully registered the name '%s.'", GetPName(playerid));
SendClientMessage(playerid, COLOR_YELLOW, str);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO){FFFFFF} Enjoy your stay!");
}