Problem after mysql_fetch_row_format
#3

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
For starters it should be

pawn Код:
SecondsToDHMS (dbt - times, days, hours, mins, sec);
but it probably won't return a exact integer value such as 3 days. It is going to return a float.

You should just do the following:
pawn Код:
new time = floatround((dbt - times) / 86400), floatround_ceil);
pawn Код:
SecondsToDHMS (dbt - times, days, hours, mins, sec);
You are right about it , but i also try that ,but the problem its still say this time its show -value(-15705)


pawn Код:
new time = floatround((dbt - times) / 86400), floatround_ceil);
Same result as above -15705.

Im starting to thing there is a bug/problem after mysql_fetch_row_format becose i've predefine value (at PlayerInfo[playerid][pUtime]) and when i convert it after while loop its show correct days so i doubt the problem its somewere else , but thanks for ideas i appreciate it
Reply


Messages In This Thread
Problem after mysql_fetch_row_format (i thing) - by doreto - 30.12.2012, 11:16
Re: Problem after mysql_fetch_row_format - by [HiC]TheKiller - 30.12.2012, 12:54
Re: Problem after mysql_fetch_row_format - by doreto - 30.12.2012, 13:31
Re: Problem after mysql_fetch_row_format - by doreto - 31.12.2012, 08:56
Re: Problem after mysql_fetch_row_format - by doreto - 01.01.2013, 11:17
Re: Problem after mysql_fetch_row_format - by AndreT - 02.01.2013, 10:56
Re: Problem after mysql_fetch_row_format - by doreto - 04.01.2013, 11:02
Re: Problem after mysql_fetch_row_format - by Roel - 04.01.2013, 11:21
Re: Problem after mysql_fetch_row_format - by Djole1337 - 04.01.2013, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)