Results 1 to 4 of 4

Thread: What are constants?

  1. #1
    Join Date
    Jul 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What are constants?

    I'm a noob.

    Whats a constant?

    oh and how come when I load some scripts, they just log me in and off?

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Constants are values that stay the same throughout the script.

    SCAR Code:
    const
      MyName = 'Method'; //this would never change while the script runs.

    Some scripts may just log you in and out because they're oudated, can't detect something correctly, or a variety of other reasons. It's hard to tell without knowing what the script is, which version you're using, and information like that.
    :-)

  3. #3
    Join Date
    Jul 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh. I'm not sure if I'm using the scripts wrong or if the scripts are outdated. Do you think you could link me to a working script so I could try it out?

    oh and so how come some scripts tell me to change the constants?

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    n3ss3s listed quite a few working scripts in his post in this topic.

    You can edit the constants before you run a script, but they are not able to be changed by the script while it's running.
    :-)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Constants and variables
    By hahicx in forum OSR Help
    Replies: 4
    Last Post: 07-03-2008, 05:31 PM
  2. Variables & Constants
    By Dakaa in forum OSR Help
    Replies: 4
    Last Post: 04-07-2007, 11:18 PM

Posting Permissions

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