Results 1 to 7 of 7

Thread: New to scripting, need help

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default New to scripting, need help

    Sorry the topic was not more specific.

    I'm new to scripting and just starting off with some basic stuff. I made the below script as the very beginning of a power miner I am working on.

    Below is the script:

    Code:
    program NoahAutoMine;
    
    var
      rockcolor: Integer;
    
    const
      userock = 'Copper';
      
    procedure definerock;
    begin
      if(userock='Copper')then
        rockcolor:=6855400;
      if(userock='Tin')then
        rockcolor:=10329513;
    end;
    
    begin
      writeln('You chose to mine '+ userock +' which has a color of: '+ IntToStr(rockcolor) +'.');
    end.
    When it returns the 'rockcolor' it returns as 0, when it should be one of the above.

    Any help or advice would be greatly appreciated. Thanks!

    -Noah

  2. #2
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Bleh, I fixed it, go ahead and delete this post. Thanks anyway!

    Code:
    begin
      definerock;
      writeln();
    end.
    Duh!

  3. #3
    Join Date
    May 2007
    Location
    http://www.srl-forums.com
    Posts
    265
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hi Noah420.

    Before you come asking for help try fixing your script first because sometimes it wastes peoples time...

    Thanks.

  4. #4
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by The devil View Post
    Hi Noah420.

    Before you come asking for help try fixing your script first because sometimes it wastes peoples time...

    Thanks.
    when you have a problem, this is the place to post..
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  5. #5
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah i would recommend you add some constants in there..k?
    http://www.myspaceanimations.com/images/funny15a.gif

    [h]LIFES A GARDEN DIGG IT
    ~JOE DIRT
    [/h]

  6. #6
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by The devil View Post
    Hi Noah420.

    Before you come asking for help try fixing your script first because sometimes it wastes peoples time...

    Thanks.
    ahh, actually, if you have any troubles you can't work out, post it here. Even if you work it out later, no harm done. If this was wasting people's time, we wouldn't answer anything would we?

  7. #7
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Mm...I'm starting to like you Jagex_Fagex...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need scripting help
    By PvH in forum OSR Help
    Replies: 2
    Last Post: 12-07-2007, 12:37 PM
  2. rsc scripting help?
    By owntpls in forum OSR Help
    Replies: 0
    Last Post: 11-23-2007, 11:57 AM
  3. Scripting Help!
    By camdo2 in forum OSR Help
    Replies: 4
    Last Post: 10-25-2007, 06:51 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
  •