Results 1 to 8 of 8

Thread: integers!

  1. #1
    Join Date
    Oct 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default integers!

    I developing a fight script based in Narcles autofighter.

    I want to put 150 colors manually in this script... but the integers don´t can pass of 99 and always show to me a message: Out Of Range in line (x) in script... Do you know a way to pass to 3 spaces in integer? thanks for help for anyone!

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Calm down, calm down.

    You have to set the length of the array to 150 if you wanna put 150 colors, but why do you wanna use 150 colors? Thats why tolerance exists.

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    yeah, 150 colors? thats crazy (and alot of work)
    Me like tolerance best
    Ce ne sont que des gueux


  4. #4
    Join Date
    Oct 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Because in beginning the script don´t have tolerance... and to find the monster I put 100 colors... now I want don´t retire the colors and put more with tolerance! The script find the monster very fast! And I don´t need set up colour in every time when I run the script. Thanks for help!

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

    Default

    SCAR Code:
    for i := 0 to Length(Players) - 1 do
      Setlength(Players[i].Integers, 150);
    Interested in C# and Electrical Engineering? This might interest you.

  6. #6
    Join Date
    Aug 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Aww i coudl ahve solved that one but the person above me did. I know realbasic. lol

  7. #7
    Join Date
    Oct 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don´t work!

    SRL Compiled in 2000 msec
    [Runtime Error] : Out Of Range in line 222 in script C:\HD\Scripts\Mossbones16.scar

    the line 222...
    Players[0].Integers [100]:=6195840;//color of monster101

    the array
    var
    MobColors: array[0..149] of integer;
    i, x, y: Integer;

    Any ideas?

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    your crazy use 25 tol and 1 color and it wil work on every world wanna use a good npc finder or monster finder use mine

    use the search button

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Integers in TIntegerArray
    By marpis in forum OSR Help
    Replies: 12
    Last Post: 03-03-2009, 11:19 PM
  2. Randomizing Integers
    By daw_guy in forum OSR Help
    Replies: 15
    Last Post: 01-13-2008, 12:14 PM
  3. Integers
    By Jackrawl in forum OSR Help
    Replies: 16
    Last Post: 12-23-2007, 03:55 PM
  4. Should integers get any larger?
    By R0b0t1 in forum Discussions & Debates
    Replies: 15
    Last Post: 11-04-2007, 09:06 AM
  5. Help with Multiplying integers...
    By snuwoods in forum OSR Help
    Replies: 5
    Last Post: 02-07-2007, 12:05 AM

Posting Permissions

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