Hey, I've got table row skill (FLOAT)
And I want to insert 10.0 into it, but it doesn't insert, the skill is still 0.
When Player connects I get his skill float like this:
PHP Code:
iSkill[id] = SQL_ReadResult(Query, 6) + 0.0;
then in-game I receive like 10.0 skill, so when I print it like this:
PHP Code:
client_print(id, print_chat, "your skill %0.1f", Float:iSkill[id])
it says
your skill 10.0
But when I try to save it on client disconnect, like this:
PHP Code:
format(szTemp,charsmax(szTemp),"UPDATE `rank` SET `name` = '%s', `skill` = '%0.1f' WHERE `rank`.`auth` = '%s';",szName, Float:iSkill[id], szAuthID);
Then I check it on my phpmyadmin and skill value is still 0.
where is the problem ? as I've mentioned that skill row is
skill FLOAT(10)