Results 1 to 3 of 3

Thread: Assignment Expected

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Assignment Expected

    I know I'm doing something stupid, I just can't figure out where! In this custom procedure with 1000 parameters, it says the error is on line 87 (shown in code below)
    SCAR Code:
    {Setting 1 = Stay offline   Setting 2 = Log back on}
    procedure WaitR(reason: string; time, randomness, setting: integer; antiban, randoms, logout: boolean);
    begin
      Writeln('INFO: ' + reason + ': ' + IntToStr(time));
      if (antiban) then AntiBan;//HERE I AM! I'M THE CUTE LITTLE ERROR!!
      if (randoms) then FindNormalRandoms;
      if (logout) then LogOut;
     
      Wait(time+random(randomness));
      case (setting) of
      1: Writeln('INFO: WaitR/ Staying offline.');
      2: begin LogInPlayer; Writeln('INFO: Logged back on'); end;
      end;
    end;

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    I took a quick glance, and perhaps the problem lies in the fact that your variables have the same names as procedures. Name them like myvarLogout, myvarAntiban, etc.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  3. #3
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Is SCAR/Simba/PascalScript, variables and stuff like that isn't case sensitive. AntiBan = antiban

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
  •