Results 1 to 6 of 6

Thread: Can someone give me a hint.

  1. #1
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default Can someone give me a hint.

    Right now i'm trying to solve the anti-leech from the 2007 powerminer made by rij95. it has alot more anti-leech than the other scripts, but that's why I want to solve it

    after fixing some anti-leech I came across this error:
    Simba Code:
    [Error] C:\Simba\Scripts\MinerV3.00[].simba(449:17): Semicolon (';') expected at line 448
    Compiling failed.
    The line is:
    Simba Code:
    case GemCombo.ITEMINDEX of
    and procedure is:

    Simba Code:
    Procedure SetGem;

    var
      GemCombo: Integer;

    begin
      case GemCombo.ITEMINDEX of
        0:
          Begin
            GemKeep := 'Sapphire'
          End;
        1:
          Begin
            GemKeep := 'Emerald'
          End;
        2:
          Begin
            GemKeep := 'Ruby'
          End;
        3:
          Begin
            GemKeep := 'Diamond'
          End;
        4:
          Begin
            GemKeep := 'None'
          End;
       End;
    End;

    I placed the var line by myself, because it said 'Unknown Identifier' for GemCombo.
    I really don't know what to fix here. it says that I need to put a ;, but where? I don't see a place where I can put that so I think there is something wrong with the condition.

    Can someone give me some hints?
    And I already read the http://villavu.com/forum/showthread.php?t=58935 guide
    But with the information I get there about cases, isn't enough.

    Thanks
    Last edited by juunhoad; 02-27-2013 at 02:11 PM.

  2. #2
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    What's the difference between


    Simba Code:
    procedure WhichSport(Sport: String);
    begin
      case Lowercase(Sport) of
        'hockey':
          WriteLn('HOCKEY!');

        'soccer':
          WriteLn('SOCCER!');

        'basketball':
          WriteLn('BASKETBALL!');

        'baseball':
          WriteLn('BASEBALL');

    and

    Simba Code:
    begin
    case GemCombo.ITEMINDEX of
    0:
    Begin
    GemKeep := 'Sapphire'
    End;
    1:
    Begin
    GemKeep := 'Emerald'
    End;
    2:
    Begin
    GemKeep := 'Ruby'
    End;

  3. #3
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by xtrapsp View Post
    What's the difference between


    Simba Code:
    procedure WhichSport(Sport: String);
    begin
      case Lowercase(Sport) of
        'hockey':
          WriteLn('HOCKEY!');

        'soccer':
          WriteLn('SOCCER!');

        'basketball':
          WriteLn('BASKETBALL!');

        'baseball':
          WriteLn('BASEBALL');

    and

    Simba Code:
    begin
    case GemCombo.ITEMINDEX of
    0:
    Begin
    GemKeep := 'Sapphire'
    End;
    1:
    Begin
    GemKeep := 'Emerald'
    End;
    2:
    Begin
    GemKeep := 'Ruby'
    End;
    Already looked at that, but I think it has something to do with the procedure name.
    Do I need to put lowercase in it?
    Simba Code:
    Procedure SetGem(GemCombo: String);
    begin
      case lowercase(GemCombo.ITEMINDEX) of

    Something like this? but still doesn't work.
    Last edited by juunhoad; 02-27-2013 at 04:20 PM.

  4. #4
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    wtf I just get mad for not fixing this. Is there a lot wrong in the Procedure or only 1 or 2 things? Keep getting errors when I change something in that Procedure.

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    First this section is not really for fixing someones anti-leech...that is the whole point! If you read some tuts you will find your answer, but xtrapap gave you a pretty good example.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  6. #6
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Element17 View Post
    First this section is not really for fixing someones anti-leech...that is the whole point! If you read some tuts you will find your answer, but xtrapap gave you a pretty good example.
    I know, but where should I post it then? And I really can't see the link between those two cases.
    He says, what is the differencen between them? But to me everything is different if I look at both cases!
    I really don't know what to change and what not to. I have been reading the case explanation in the tutorial(http://villavu.com/forum/showthread.php?t=58935) for 2 hours now and still don't understand..
    I have also been looking through some other script and no other script has a case form like he does.

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
  •