Results 1 to 6 of 6

Thread: Sorry bit more "/

  1. #1
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Sorry bit more "/

    Hey guys, sorry I feel like a dummy.
    I have been playing around with InIntArray etc trying to test for all axes etc.
    Well here is what I have, it is a bit all over the place (sorry).

    Simba Code:
    Function AxeWielded : Boolean;
    var
    Equipped : integer;
    TheIDs: TIntegerArray;
    Hatchet : TInvItemArray;
    Begin
      If Not (LoggedIn) Or Not (Players[CurrentPlayer].Active) Then
        exit;
      TheIDs := [1351, 1357, 1361, 6739, 1348, 1355, 1359, 1353];
      GameTab(tab_Inv);
          Wait(500 + Random(200));
          if(R_ItemIDExistsEx(Hatchet, TheIDs))then
             begin
              Players[CurrentPlayer].Booleans[0] := False;
              Exit;
             end else
              GameTab(tab_Equip);
              Wait(500 + Random(200));
              Equipped := GetEquippedIDAt(3);
              if(InIntArray(TheIDs, Equipped))then
                begin
                  Players[CurrentPlayer].Booleans[0] := True;
                end;
    End;
    I get a type mismatch on the line shown:
    Simba Code:
    if(R_ItemIDExistsEx(Hatchet, TheIDs))then

    Thankyooo for any help
    -Boom
    Last edited by **BANNED The Man; 12-24-2010 at 05:39 PM.

  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Try switching the parameters around, it looks like the types are the opposite way around (at they are in my version of reflection)

  3. #3
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Richard View Post
    Try switching the parameters around, it looks like the types are the opposite way around (at they are in my version of reflection)
    Thank you very much kind sir, a stupid mistake on my part...

    -Boom

    EDIT:
    What is going on with me argh!!!!
    Simba Code:
    IncEx(Players[CurrentPlayer].Integers[0](27 + Integer(not Players[CurrentPlayer].Booleans[0])));
    Type Mismatch again ... >.<

  4. #4
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    you need a comma
    Simba Code:
    IncEx(Players[CurrentPlayer].Integers[0], 27);

  5. #5
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yep.. another stupid mistake.
    TomTuff, do you have msn?

  6. #6
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    PM'd

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
  •