Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28

Thread: InArr();

  1. #26
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    You could always ask Freddy to make an InArr function. I'm not sure how but using delphi you can make functions take undefined types (similar to how Swap() can swap any two variables as long as the types are the same). Perhaps you could do it in a plugin too although I'm not too sure.
    To accept untyped variables, do something like:
    Code:
    procedure lulz(const mudkipz);
    begin
    end;
    I tried making an InArr in a plugin, but I kept getting access violations and runtime errors. Maybe it's possible and I just didn't try long enough though.

  2. #27
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    I have one that I made, but it only accepts TIntegerArrays, TStringArrays, TExtendedArrays, and TVariantArrays.

    Edit: Nevermind. Apparently SCAR can't handle overloaded functions in plugins.
    Last edited by senrath; 08-24-2009 at 12:44 AM.

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

    Default

    Quote Originally Posted by senrath View Post
    I have one that I made, but it only accepts TIntegerArrays, TStringArrays, TExtendedArrays, and TVariantArrays.

    Edit: Nevermind. Apparently SCAR can't handle overloaded functions in plugins.
    Yeah, I found out the same lol. Just a suggestion for InStrArr to be put into WizzyPlugin or SCAR since it eats up speed in Text.Scar.

Page 2 of 2 FirstFirst 12

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
  •