Results 1 to 13 of 13

Thread: Need help with settings

  1. #1
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default Need help with settings

    Im trying to set user settings at the top of my script, my true and false settings dont work when I use them in cases,

    Such as:

    Simba Code:
    const
    Prayer := true;


    If prayer then
       begin
         WithdrawPots;
       end;

    The above does not do anything, how should I declare and use my settings? Never had issues before this.

  2. #2
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  3. #3
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    Well prayer is false...so why would it do anything?
    Sorry, meant to make it true. When it is true it doesn't do anything either

    http://villavu.com/forum/showthread.php?t=100541 <---- script I'm using them in. It just ignores it whether true or false/:

  4. #4
    Join Date
    Mar 2013
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    I think you need to have the capital letter P with Prayer not prayer, sorry if im wrong still a roockie.

  5. #5
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by SRLKing View Post
    Im trying to set user settings at the top of my script, my true and false settings dont work when I use them in cases,

    Such as:

    Simba Code:
    const
    Prayer := true;


    If prayer then
       begin
         WithdrawPots;
       end;

    The above does not do anything, how should I declare and use my settings? Never had issues before this.
    Try
    Simba Code:
    Prayer = True;

    rather than

    Simba Code:
    Prayer := True;

  6. #6
    Join Date
    May 2007
    Posts
    527
    Mentioned
    12 Post(s)
    Quoted
    109 Post(s)

    Default

    Quote Originally Posted by SRLKing View Post
    Im trying to set user settings at the top of my script, my true and false settings dont work when I use them in cases,

    Such as:

    Simba Code:
    const
    Prayer := true;


    If prayer then
       begin
         WithdrawPots;
       end;

    The above does not do anything, how should I declare and use my settings? Never had issues before this.
    Simba Code:
    const
        PRAYER = true;

    if PRAYER = true then // Or .. prayer = false
         WithdrawPots();

  7. #7
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    For const, you use a equal sign, not a :=

  8. #8
    Join Date
    May 2007
    Posts
    527
    Mentioned
    12 Post(s)
    Quoted
    109 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    For const, you use a equal sign, not a :=
    No wonder you've got 2.4k posts Why post that when The Mayor already said the exactly same thing couple of posts up?

  9. #9
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by superuser View Post
    No wonder you've got 2.4k posts Why post that when The Mayor already said the exactly same thing couple of posts up?
    I don't really read the comments, I just post an answer.

    Been a long day.

  10. #10
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Try
    Simba Code:
    Prayer = True;

    rather than

    Simba Code:
    Prayer := True;
    I'm face palming pretty hard right now >.<

  11. #11
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

  12. #12
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    At least you won't make that mistake again

    I need to stop coding at 3am XD

  13. #13
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by superuser View Post
    Simba Code:
    const
        PRAYER = true;

    if PRAYER = true then // Or .. prayer = false
         WithdrawPots();
    You can just do
    Simba Code:
    const
        PRAYER = true;

    if PRAYER then // Or .. not PRAYER
         WithdrawPots();

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
  •