MYSQL not insert (frag.gs)
#2

Check the value type your column 'hp'. If its Float, change especifier here

PHP Code:
format(querysizeof(query), "INSERT INTO `accounts` (`Username`, `Senha`, `IP`, `hp`, `playerlskin`) VALUES ('%s', '%s', '%s', '%i', '%i')"
                
GetName(playerid), pInfo[playerid][pSenha], ipvidainicialskininicial);
            
mysql_query(ConnectMYSQL,query); 
to

PHP Code:
format(querysizeof(query), "INSERT INTO `accounts` (`Username`, `Senha`, `IP`, `hp`, `playerlskin`) VALUES ('%e', '%s', '%s', '%f', '%i')"
                
GetName(playerid), pInfo[playerid][pSenha], ipvidainicialskininicial);
            
mysql_query(ConnectMYSQL,query); 
Remember

%s = strings
%e = Strings anti injection sql
%f = Point Float
%d = Integer
%i = Ingeger
Reply


Messages In This Thread
MYSQL not insert (frag.gs) - by ubunttu - 02.02.2017, 17:40
Respuesta: MYSQL not insert (frag.gs) - by Eloy - 03.02.2017, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)