The Daily Click ::. Forums ::. Klik Coding Help ::. Take Last 2 Only?
 

Post Reply  Post Oekaki 
 

Posted By Message

The New SnS



Registered
  10/12/2002
Points
  768
29th November, 2004 at 20:57:07 -

Basically I have 3 counters. One for hours, one for minutes, and one for seconds. I'm using the DirectPlay object (or whatever its called) so I'm only given the number of seconds. The three counters are set up as follows:

Hours: GetCurrentPos("Directplay) / 1000 / 60 / 60
Minutes: GetCurrentPos("Directplay) / 1000 / 60
Seconds: GetCurrentPos("Directplay) / 1000

Basically, I just need a way to take ONLY the last 2 digits of the outputs. Is there any way to do this? Any help is greatly appreciated.

 
Visit the home of Mari007 and Gold's Not Enough:

The New SnS

http://sunnynook.cjb.net

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
29th November, 2004 at 21:02:47 -

value("counter")mod100

Should work (although it only needs to be mod60 really).

Edit:
Or... GetCurrentPos("Directplay")mod60 I guess.

Image Edited by the Author.

 
n/a

The New SnS



Registered
  10/12/2002
Points
  768
29th November, 2004 at 21:15:13 -

Thanks!

 
Visit the home of Mari007 and Gold's Not Enough:

The New SnS

http://sunnynook.cjb.net

Nuklear41

Possibly Insane

Registered
  12/01/2008
Points
  2395

VIP MemberPS3 OwnerWii Owner
30th November, 2004 at 00:01:43 -

Radix saves the day again!

 
Image

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
30th November, 2004 at 09:42:43 -

or use the string manipulation functions:

Right$(Str$(GetCurrentPos("Directplay") / 1000 / 60 / 60), 2)

 
www.thenatflap.co.uk
   

Post Reply



 



Advertisement

Worth A Click