Results 1 to 5 of 5

Thread: Array of Extended?

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Array of Extended?

    Simba Code:
    Function CheckStuff: Boolean;
     var
      CTS: Integer;
      Coords, Color: Array of Integer;
     Hue, Sat:  Extended;
     begin  
    If(Not(LoggedIn))Then Exit;  
    I := 0;
     Color := [1288552,{Ring}3546718{Hat}];  
    //Coords :=[34,344];
     Hue.M:= [0.56,0.34];  
    Sat.M:= [0.37, 2.00];  
    CTS := GetColorToleranceSpeed;
     ColorToleranceSpeed(2);  
    //SetColorspeed2Modifiers(Hue.M, Sat.M);  
    GameTab(tab_EQUIP);  
    Begin  
    SetColorspeed2Modifiers(, Sat.M);  
    if ColorWait(2000, Color[0], Coords[0], Coords[1], Coords[2], Coords[3], 18) Then    
    Continue;

    Get this error
    Simba Code:
    (729:6): Semicolon (';') expected at line 728
    Compiling failed.

    Line 728 is
    Simba Code:
    Hue.M := [0.56, 0.34];

    Not sure why? I have tried to place a ; in several places but nothing. Note no this is not the complete function.
    Is it even possible to have an array of extended?
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

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

    Default

    It is possible to have an array of Extended.

    Simba Code:
    var
      arr : TExtendedArray;
    begin
    end.

  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by Le Jingle View Post
    It is possible to have an array of Extended.

    Simba Code:
    var
      arr : TExtendedArray;
    begin
    end.
    Mmmm totes sexy haha. Thanks man, learned something new!
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    And also, 'array of Extended' does the same thing

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    And also, 'array of Extended' does the same thing
    It does! I tried it earlier, but I had Hue.M := blah and Sat.M := blah and threw an error. Just had to remove the .m
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

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
  •