Results 1 to 2 of 2

Thread: changing constants

  1. #1
    Join Date
    Dec 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default changing constants

    At the top of my script it have this
    Simba Code:
    Const
    InvIsFull = false;

    how can I make InvIsFull = true;? I tried to do this

    EDIT:Nevermind! i got it, all i had to do was decalare the variable InvIsFull:Boolean; at the top of my script and i was able to do InvIsFull := False;

    Simba Code:
    begin
      AL_AccurateMMouse(point(649, 183), 2, 2);
      AL_FastClick(mouse_left);
      if FindColor(x, y, 5855583, 700, 432, 724, 456) then
      begin
        InvIsFull := True; //how do i make this line change InvIsFull to true?
        WriteLn('Inventory is full');
      end;
    end;
    Last edited by doxin; 12-27-2012 at 05:07 AM.

  2. #2
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Make it Var not Const

    Simba Code:
    Var
       InvIsFull: Boolean;

    Constants are, well, Constantly the same
    Last edited by DannyRS; 12-27-2012 at 05:05 AM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

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
  •