Results 1 to 5 of 5

Thread: General Help.

  1. #1
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default General Help.

    Hey Guys,

    Just a little bit stumped on this.
    Ok I'm trying to make something in SCAR. (Too complicated to explain).

    But basically I input this
    SCAR Code:
    Result := IntToStr((( z * 2 ) + 76561197960265728 + y));

    In this case,
    z = 235800
    y = 1

    And scar outputs the Result as: 471601

    So its adding everything up correctly except for 76561197960265728.
    Any reason why this is?

    Please let me know.
    Thanks
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    76561197960265728 Is too big of a number for an integer variable to hold. You are going to have to use a LongInt to hold that value.
    Last edited by JAD; 10-14-2009 at 03:32 PM.

  3. #3
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    LongInt has the same range as a normal integer, what you're looking for is Int64 (limit -> 9223372036854775807).

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Basically Int64ToStr(stuff goes in here).


  5. #5
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok Thanks alot for all your help guys!
    Works like a charm!
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

Thread Information

Users Browsing this Thread

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

Posting Permissions

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