Results 1 to 4 of 4

Thread: Array length

  1. #1
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Array length

    Figured it out.
    Last edited by xdarkshadowx; 03-17-2013 at 09:57 PM.
    Non-RS scripter, if you need a hand with scripting let me know. I have a decent amount of experience scripting for non-RS games.

    How to add text messaging to any script: http://villavu.com/forum/showthread....98#post1151998

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    setArrayLength(arr, count); isn't working for me, getting Error: Could not call proc at line 26

    Please advise.
    Is there any more context to this error you receive?
    Here's an example of using SetArrayLength:
    Simba Code:
    var
      TPA: TPointArray;
    begin
      Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
      SetArrayLength(TPA, 10);
      Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
      SetArrayLength(TPA, 0);
      Writeln('Length of TPA is: ' + IntToStr(Length(TPA)) + '.');
    end.

  3. #3
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I had accidentally defined the array to a set length. Which was making it imposible to change the length.
    Non-RS scripter, if you need a hand with scripting let me know. I have a decent amount of experience scripting for non-RS games.

    How to add text messaging to any script: http://villavu.com/forum/showthread....98#post1151998

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    I had accidentally defined the array to a set length. Which was making it imposible to change the length.
    Ah, alright, glad you solved it.
    If you need any help, don't be shy to shoot me a pm
    Cheers,
    Lj

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
  •