Results 1 to 9 of 9

Thread: Can someone help with my include?

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

    Default Can someone help with my include?

    I'm really tired after making this. It's over 1,500 lines. I just need someone to get it to compile, or fix anything they see wrong, my eyes are burning so I'm going to bed. If you could spare your time, that'd be wondeful!

    Download is attached.
    SCAR Code:
    {*******************************************************************************
    PlayerStyle;
    By: uncfan1119
    Description: Chooses the style of the player, in tutorial island.
    Credits: Special thanks to JAD, for explaining to me the simple boolean.
    *******************************************************************************}
    Last edited by uncfan1119; 10-18-2009 at 02:40 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    US
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've been told this a thousand times, but standards do make stuff easier to read. And I thought MouseBox was old? You may want to use something different, doesn't matter though. When u do this:

    SCAR Code:
    //your's
    mousebox(385, 216, 398, 228,1);
    //The Form it needs to be in
    MouseBox(X1, Y1, X2, Y2);
    //Changed All yours to the Second Form

    I'm guessing your wanting to left click buttons, so that will do. I give some cred's for having to find all of those coords tho.

    Line 78, 589, look unfinished

    There are a bunch of weird spots. I'm sure who ever uses this, will wanna pick if they are a boy or girl by the way. Atleast able to pick their gender.

    SCAR Code:
    Procedure PlayerStyle(Gender: Boolean);  // True=Boy False=Girl
    Or something like that.

    But I made it compile at least

    Here it is. If it don't work, just say so i guess:

    Attachment 8581
    Last edited by reddevil12312; 10-18-2009 at 03:39 AM.

  3. #3
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by reddevil12312 View Post
    I've been told this a thousand times, but standards do make stuff easier to read. And I thought MouseBox was old? You may want to use something different, doesn't matter though. When u do this:

    SCAR Code:
    //your's
    mousebox(385, 216, 398, 228,1);
    //The Form it needs to be in
    MouseBox(X1, Y1, X2, Y2);
    //Changed All yours to the Second Form

    I'm guessing your wanting to left click buttons, so that will do. I give some cred's for having to find all of those coords tho.

    Line 78, 589, look unfinished

    There are a bunch of weird spots. I'm sure who ever uses this, will wanna pick if they are a boy or girl by the way. Atleast able to pick their gender.

    SCAR Code:
    Procedure PlayerStyle(Gender: Boolean);  // True=Boy False=Girl
    Or something like that.

    But I made it compile at least

    Here it is. If it don't work, just say so i guess:

    Attachment 8581
    Actually, his was originally right.
    SCAR Code:
    MouseBox(x1, y1, x2, y2, clickType);
    Is SRL and is safe, the other is not.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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

    Default

    Thanks for the help reddevil, but it doesn't compile.
    [Error] (22134:4): Identifier expected
    Last edited by uncfan1119; 10-18-2009 at 01:54 PM.
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  5. #5
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    new one is attached (that I'm getting error with)
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  6. #6
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Woah! Major problems with your begins and ends.

    Remove Line 29 and 81 begin and end. Unnecessary. Add an end to 241, 459. Remove begin at 462. Add begin at 495. Remove end at 592 Add end at 702. Remove end at 708. Add end at 791. Remove begin at 856. Remove end at 1006. Add end at 1075 Remove end at 1212. Add end at 1276. Add end at 1367. Remove begin at 1523 and 1538. Add end at 1578 and 1579.

    Or download the fixed script

  7. #7
    Join Date
    Sep 2006
    Posts
    322
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Woohoo!!!! Thank-you richard! Giving you credits
    "SRL is the best SCAR community in the World, with the most talented programmers: adjust your volume."
    -Wizzup?

  8. #8
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  9. #9
    Join Date
    Jul 2008
    Location
    US
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Actually, his was originally right.
    SCAR Code:
    MouseBox(x1, y1, x2, y2, clickType);
    Is SRL and is safe, the other is not.
    Oh well that's my bad. Every time I tried to compile it, it said that whole, you put in weird numbers and stuff. I hit CNTL+Space Bar, and there it was. So yeah that's my bad.

    And just so you don't keep making the same mistakes, After everytime you use a case, you have to put a final end to it. I didn't see anyone actually tell him what his problem was. so do like this:

    SCAR Code:
    Procedure Blah;
    Begin
      Case Random(2)  Of
        1: Mouse(1,1,1,1, True);
        2: Mouse(2,2,2,2, True);
      End // you need to put a end here! to end the Case
    End  // A End to end the procedure. but you knew that lol

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
  •