Results 1 to 8 of 8

Thread: Missing a begin/end?

  1. #1
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default Missing a begin/end?

    SCAR Code:
    Procedure DropOre;
    begin
      if players[currentplayer].booleans[0]= True then
      for i:=1 to 28 do
      dropitem(i);
      else
      for i:=2 to 28 do
    dropitem(i);
    end;
    end;

    im missing a begin/end in there somewhere, but i cant figure out where
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  2. #2
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    hmmm should i go around the begin maybe?
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  3. #3
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Procedure DropOre;
    begin
    if players[currentplayer].booleans[0]= True then
    for i:=1 to 28 do
    dropitem(i);
    else
    for i:=2 to 28 do
    dropitem(i);
    end;
    end;
    Dont panic! Im an expert at scripting! MWHAAHAHA

    procedure DropOre;
    begin
    if players[currentplayer].booleans[0]= True then
    begin
    for i:=1 to 28 do
    dropitem(i);
    else
    for i:=2 to 28 do
    dropitem(i);
    end;
    end;

  4. #4
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    still says i need a identifier on the line w/ ELSE
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    SCAR Code:
    Procedure DropOre;
    begin
      if players[currentplayer].booleans[0] then
      for i:=1 to 28 do
        dropitem(i)
      else
      for i:=2 to 28 do
        dropitem(i);
    end;
    Removed a semi-colon you did not need, fixed standards, and removed an unnecessary end.

    Why don't you just ask me on MSN about this? As long as you don't be an ass to me, I will not block you again..


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  6. #6
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    Thanks hy!
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

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

    Default

    SCAR Code:
    Procedure DropOre;
    begin
      if players[currentplayer].booleans[0]= True then
        for i:=1 to 28 do
          dropitem(i);
      else
        for i:=2 to 28 do
          dropitem(i);
    end;
    There you go. You had an extra end; at the end.

    EDIT: Ahh, beaten

  8. #8
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    Darn, =[ i WAS WAY OFF.... Im not so great after all =l

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Scar won't begin
    By groog in forum OSR Help
    Replies: 4
    Last Post: 01-26-2009, 09:16 PM
  2. Begin and End for proggy
    By faster789 in forum OSR Help
    Replies: 7
    Last Post: 03-24-2008, 04:43 PM
  3. Need help with begin-ends
    By IPwnz in forum OSR Help
    Replies: 4
    Last Post: 12-01-2007, 06:31 PM
  4. 'Begin' expected in script?
    By Mistagnerd in forum OSR Help
    Replies: 5
    Last Post: 11-12-2007, 10:01 AM

Posting Permissions

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