Results 1 to 4 of 4

Thread: DuelDone problems.

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DuelDone problems.

    Well, as some of you guys may know im makin an auto-dueler that will hopefully run overnight. I'm having trouble with my dueldone procedure. This is what i have so far:
    PHP Code:
    procedure DuelDone;
    Begin
    Status
    ('Dueling')
    Repeat
    Wait
    (100)
    Until(OutFight)
    end
    and its giving me Type mismatch on line 27, line 27 is the end; in there. Any ideas guys?



    PS, the OutFight thing i got of Mopar from some dude, not my idea :O.

  2. #2
    Join Date
    Jan 2007
    Location
    Uk
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    outfight is a procedure - needs to be a function in the way you are using.

    Use, (InFight) instead.

    outfight - looks for fight and waits till you are out of it.

    Infight- looks or fight and returns true/false if in fight.

    Code:
    procedure DuelDone; 
    Begin 
    Status('Dueling') 
    OutFight;
    end;
    Hope this helps.

    -Endr1x

  3. #3
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure FightWait;
    begin
     if isfight then
     begin
     repeat
      wait(200)
     until not(isfight);
    end;
    end;

    try that ou
    SUMMER BREAK be back when I want to

  4. #4
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by endr1x View Post
    outfight is a procedure - needs to be a function in the way you are using.

    Use, (InFight) instead.

    outfight - looks for fight and waits till you are out of it.

    Infight- looks or fight and returns true/false if in fight.

    Code:
    procedure DuelDone; 
    Begin 
    Status('Dueling') 
    OutFight;
    end;
    Hope this helps.

    -Endr1x
    Thanks Endr1x, i'll give that a try if it works then i'll cred you .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SQL Problems. Please help!
    By Da 0wner in forum Web Development
    Replies: 10
    Last Post: 01-22-2009, 02:03 AM
  2. Computer problems... Terrible computer problems...
    By Jason2gs in forum News and General
    Replies: 22
    Last Post: 04-26-2007, 12:02 PM

Posting Permissions

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