Results 1 to 11 of 11

Thread: Trouble compiling

  1. #1
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Trouble compiling

    http://pastebin.com/m50642b28

    At line 10, "Name" I think there's more flaws too :P please post so if you attempt to locate one.

    It's my first script, and i've used a script from rogeruk as a template for the basic setup.
    I ... Am ... CARTMANN!

  2. #2
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Players[0].Name

    http://pastebin.com/d182ec9d4

    Theres also several other problems, with identifiers mostly, i dont have more time to check the whole code through right now.
    Last edited by Frement; 01-13-2010 at 07:54 PM.
    There used to be something meaningful here.

  3. #3
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks mate.

    btw, you have made another add: Var x, y: Integer; - Why?
    I ... Am ... CARTMANN!

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    If you have variables inside a procedure/function they are for only that. If you use then in everything, like the basic x & y. You should put them just after includes.
    There used to be something meaningful here.

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    want me to fix it up?

    ~shut

  6. #6
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    I allways liked to fix my own problems, i learnt the best like that.
    There used to be something meaningful here.

  7. #7
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    want me to fix it up?

    ~shut
    If you could help me makeing my script functionally, i would be really nice, but please, post what you edit.
    So i know where the flaws are, and how to fix them
    I ... Am ... CARTMANN!

  8. #8
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    there ya go
    i also labled what i changed
    there is a section which i commented out because a function doesnt exist

    http://shuttleu.pastebin.com/m41040a63

    ~shut

  9. #9
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I think you should put in a With..Do Statement for the Declare Players Setup >.>
    http://shuttleu.pastebin.com/m607531d5 <-- My Declare Players so far in my Script. Kinda like that no?
    Disregard all extra booleans and integers, but pretty much thats how I would write it.
    I would add in Breaking as well =P
    Last edited by Heavenguard; 01-13-2010 at 09:04 PM.
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  10. #10
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice, thanks you for helping me out, +rep to your both

    EDIT:

    Shuttleu: GESell is a SRL/SRL/misc/GrandExchange.scar

    Code:
    {*******************************************************************************
    Function GESell(Price, Quantity: string; InvSpot: integer): boolean;
    By: Rasta Magician
    Description: Sells an item at GE
                 Price: 'min', 'med', 'max', exact value
                 Quantity: '1', '10', '100', 'all', exact value
                 InvSpot: the Invspot where you have your item
    *******************************************************************************}
    Function GESell(Price, Quantity: string; InvSpot: integer): boolean;
    var
      free :integer;
    begin
      if not InGE then exit;
      if not GEFindFreeSpot(free) then exit;
    
      if GESellAt(free) then
      begin
        wait(100+Random(100));
        MouseItem(InvSpot, true);
        wait(200+Random(100));
        GESetPrice(Price);
        wait(200+Random(100));
        GESetQuantity(Quantity);
        wait(200+Random(100));
        Result := GEConfirmOffer;
      end;
    end;
    And the water you wrote i needed a bitmap for is a "symbol" which i found in SRL/SRL/Core/Symbol.scar

    Would i need to call that in my includes before it would work?
    Last edited by Cartmann; 01-14-2010 at 05:56 PM.
    I ... Am ... CARTMANN!

  11. #11
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Heavenguard View Post
    I think you should put in a With..Do Statement for the Declare Players Setup >.>
    http://shuttleu.pastebin.com/m607531d5 <-- My Declare Players so far in my Script. Kinda like that no?
    yes that would be fine
    Quote Originally Posted by Cartmann View Post
    nice, thanks you for helping me out, +rep to your both

    EDIT:

    Shuttleu: GESell is a SRL/SRL/misc/GrandExchange.scar

    Code:
    {*******************************************************************************
    Function GESell(Price, Quantity: string; InvSpot: integer): boolean;
    By: Rasta Magician
    Description: Sells an item at GE
                 Price: 'min', 'med', 'max', exact value
                 Quantity: '1', '10', '100', 'all', exact value
                 InvSpot: the Invspot where you have your item
    *******************************************************************************}
    Function GESell(Price, Quantity: string; InvSpot: integer): boolean;
    var
      free :integer;
    begin
      if not InGE then exit;
      if not GEFindFreeSpot(free) then exit;
    
      if GESellAt(free) then
      begin
        wait(100+Random(100));
        MouseItem(InvSpot, true);
        wait(200+Random(100));
        GESetPrice(Price);
        wait(200+Random(100));
        GESetQuantity(Quantity);
        wait(200+Random(100));
        Result := GEConfirmOffer;
      end;
    end;
    And the water you wrote i needed a bitmap for is a "symbol" which i found in SRL/SRL/Core/Symbol.scar

    Would i need to call that in my includes before it would work?
    if its in the core folder then you wont need to include it

    ~shut

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
  •