Results 1 to 4 of 4

Thread: ; help

  1. #1
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ; help

    SCAR Code:
    if (Players[currentplayer].Boolean2) then
       begin
        if ((haveaxe = true)and(havetinder = true))then result := true;
        end else result := false;
    //end else<-- says there should be a ; here but why
       begin
         if (haveaxe = true)then result := true;
         end else result := false;
       end;
    "your always where you supposed to be"

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    yea..ive gotten that before but didnt want to sound newby asking about it
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Try This...

    SCAR Code:
    Procedure Axe;
    Begin
      if (Players[currentplayer].Boolean2) then
      begin
        if haveaxe and havetinder then
        Begin
          result := true;
        end else
          result := false;
         if haveaxe then
         Begin
           result := true;
         end else result := false;
      End;
    End;

  4. #4
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea that works
    "your always where you supposed to be"

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
  •