AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [PHP] Conditions Helps (https://forums.alliedmods.net/showthread.php?t=84755)

AntiBots 01-31-2009 12:14

[PHP] Conditions Helps
 
Well in Pawn I do like this

PHP Code:

 
iMin 
floatround(timefloatround_floor)/60
iSec 
time - (60*iMin)
formatex(phptiempo63"%d:%s%.4f"iMiniSec 10 "0" ""iSec); 

In PHP I do like this:
PHP Code:

$t time
$lala 
= (floor(floor($a["time"])/60) < 10 '0' '');
$lalin = ($a["time"]-floor(floor($a["time"])/60) < 10 '0' '');
 
// So I use like this
echo ". $lala ."". floor(floor($t)/60) .":". $lalin ."". number_format(($t-floor(floor($t)/60)), 5, '.', '') ."

But I get result like 02:150.0000 when the true is 02:30.21582

How I can do well?

Thanks.

BOYSplayCS 01-31-2009 16:16

Re: [PHP] Conditions Helps
 
Your second parameter in number_format isn't needed.

AntiBots 02-05-2009 14:48

Re: [PHP] Conditions Helps
 
Quote:

Originally Posted by BOYSplayCS (Post 753400)
Your second parameter in number_format isn't needed.

I remove but it is the same...

The msg is like this:
http://e.imagehost.org/t/0122/kztop15.jpg


Thanks.


All times are GMT -4. The time now is 01:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.