Results 1 to 5 of 5

Thread: TimeFromMark help

  1. #1
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default TimeFromMark help

    Im wondering what the number from TimeFromMark is returned in? I thought ti was milliseconds but that doesnt seem to be working... basically i want to change it to minutes, ive been trying

    SCAR Code:
    Writeln('Time Since Last Try '+inttostr((TimeFromMark(Players[CurrentPlayer].integers[1]))/(60*100))+ ' minutes');

    But the minutes seem to be going a bit quick... any help would be nice
    The truth finally came out...


  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    First u need:

    MarkTime( Players[CurrentPlayer].integers[1] );

    Then do:

    IntToStr(TimeFromMark(Players[CurrentPlayer].integers[1])/1000/60);

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nvm Jukka got it.

    SCAR Code:
    MarkTime(test);
      repeat
      wait(60000);
      writeln('Been waiting.. ' + IntToStr(TimeFromMark(Test)/1000/60) + ' mins');
      until(false);

    Been waiting.. 1 mins

    Yea works great.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    You missed a zero in the /60/1000
    Interested in C# and Electrical Engineering? This might interest you.

  5. #5
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ah its 1000, tahnks to everyone adn to Jukka Id already marked the time...
    The truth finally came out...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TimeFromMark
    By Bobzilla69 in forum OSR Help
    Replies: 6
    Last Post: 09-30-2007, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •