Raised This Month: $ Target: $400
 0% 

change format


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-15-2009 , 07:31   change format
Reply With Quote #1

PHP Code:
show_hudmessage(id"Lap: %d/%d (Time: %3.2f)                 Last Lap : %3.2f         Best Lap : %3.2f"laps[id] + 1get_pcvar_num(totalLaps), hlTime lapTime[id],kir1,bestlap); 
i want the time so : xx: xx: xx & in 60 format & not 100. any ideas?
Attached Thumbnails
Click image for larger version

Name:	Unbenannt.JPG
Views:	192
Size:	3.6 KB
ID:	47545  
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 07:34   Re: change format
Reply With Quote #2

format_time()
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-15-2009 , 15:48   Re: change format
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
That wouldn't help in his situaiton.

Code:
GetLapTime( Float:fTime, &iHours, &iMinutes, &Float:fSeconds ) {     new iSeconds = floatround( fTime, floatround_floor );     iMinutes = ( iSeconds / 60 ) % 60;     iHours = iSeconds / 3600;         fSeconds = fTime - float( iSeconds ) + float( iSeconds % 60 ); } // ... new iHours, iMinutes, Float:fSeconds; GetLapTime( hlTime - lapTime[ id ], iHours, iMinutes, fSeconds ); show_hudmessage(id,\     "Lap: %d/%d (Time: %i:%i:%f)                 Last Lap : %3.2f         Best Lap : %3.2f",\     laps[id] + 1, get_pcvar_num(totalLaps),\     iHours, iMinutes, fSeconds,kir1,bestlap     );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-16-2009 at 05:17.
Exolent[jNr] is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-15-2009 , 17:05   Re: change format
Reply With Quote #4

wow n1 exolent. i wanted ask again how with format_time but i tought again anyone will say "STOP CODING U ASSHOLE" or somthing like this. how i become 10000 time as -k

thank you again
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-15-2009 , 17:03   Re: change format
Reply With Quote #5

Oops.
__________________
Arkshine is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-15-2009 , 17:09   Re: change format
Reply With Quote #6

Mats PRO!
Quote:
Originally Posted by Exolent
iHours = iSeconds / 360;
Isn't 3600 ?
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-16-2009 , 05:16   Re: change format
Reply With Quote #7

Quote:
Originally Posted by Alka View Post
Mats PRO!
Isn't 3600 ?
Rawr. I didn't account for the other 0.

I also left in the szDecimal part that I removed after rearranging the code.
It has been removed now.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-16-2009 , 08:47   Re: change format
Reply With Quote #8

ty this works but after 60 seconds, the timer get again on 0:00 the problem is when i use for example :

%f , the lap time as ( fSeconds ) after 60 seconds this is not anymore fSeconds. this is iMinutes
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:10.


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