Quote:
Originally Posted by SIZET
coloque como float quando for criar a tabela use o float
PHP код:
CREATE TABLE IF NOT EXISTS `Contas` (`Vida` float NOT NULL DEFAULT 100.0)
Mesma coisa com as Posiзхes na hora de dar update use '%f' ou '%0.3f'
PHP код:
new Float:Vida, Float:Pos[4];
GetPlayerHealth(playerid, Vida);
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
mysql_format(DB_CONEXAO, gstring, sizeof(gstring), "UPDATE `Contas` SET `Vida` = %f, `X` = %f, `Y` = %f, `Z` = %f `A` = %f WHERE `ID` = %d", Vida, Pos[0], Pos[1], Pos[2], Pos[3], PlayerInfo[playerid][pID]);
|
Opб deu certo aqui viw +rep!