MySQL Rows Not Created :/
#1

Hello

i noticed the rows not created idk why :C

that why i don't get login dialog i think :C

Dialog code :

PHP код:
switch( dialogid )
    {
        case 
DIALOG_REGISTER:
        {
            if (!
response) return Kick(playerid); 
            if (!
inputtext[0] || inputtext[0] == ' ')  return ShowPlayerDialogplayeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD"Register {FF0000}Failed !""You must type a password if you want to register!""Register""Quit" );
            new 
string[150]; 
            if(!(
MIN_PASSWORD_LENGTH <= strlen(inputtext) <= MAX_PASSWORD_LENGTH)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD"Register {FF0000}Failed !"""WHITE"The password must be between 4 and 24 characters!""Register""Quit" ); 
            new 
ip[18]; 
            
GetPlayerIp(playeridipsizeof (ip)); 
            new 
querylist[512];
            
format(querylistsizeof(querylist), "INSERT INTO `accounts`(`name`, `ip`, `password`) VALUES('%s', '%f', '%s')"GetName(playerid), ipinputtext);
            
mysql_query(MySQLquerylist);
            
format(stringsizeof (string), ""GREEN"Thank you %s! You have successfully registered this account. || Money: $%i || Skin: %i"GetName(playerid), PlayerInfo[playerid][pCash], PlayerInfo[playerid][pSkin]);
            
SendClientMessage(playerid, -1string);
        } 
Reply
#2

IP is string, thus %s not %f.
Reply
#3

Quote:
Originally Posted by iLearner
Посмотреть сообщение
IP is string, thus %s not %f.
fixed ! i was dumb

Thank you

+reped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)