MySQL
#1

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!");
        }
Why doesn't this update the table?
Reply


Messages In This Thread
MySQL - by austin070 - 19.04.2014, 22:41
Re: MySQL - by itsCody - 19.04.2014, 22:52
Re: MySQL - by austin070 - 19.04.2014, 22:54
Re: MySQL - by DobbysGamertag - 20.04.2014, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)