Results 1 to 3 of 3

Thread: Error Help Plz

  1. #1
    Join Date
    Feb 2008
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Error Help Plz

    why do i get this error
    Code:
    Line 82: [Error] (15429:1): comma (',') expected in script
    in
    SCAR Code:
    Procedure Magiclvl;
    var Mlvl: integer;
    begin;
     if(not loggedin)then exit;
     gametab(2);
      MLvl := GetSkillInfo('Magic',False);
      writeln('Your Magic Level is '+(inttostr(MLvl))
      if (MLvl <= 25) then TransportLocation:='Varrock' else;
      if (MLvl <= 31) then TransportLocation:='Lumbridge' else;
      if (MLvl <= 37) then TransportLocation:='Falador' else;
      if (MLvl <= 45) then TransportLocation:='Camelot' else;
      if (MLvl <= 51) then TransportLocation:='Ardougne';
    end;

    then i comment out the writeln and it says semicolon expected help lease anyone

    i cant see where i have missed anything

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure Magiclvl;
    var
      Mlvl: integer;
     
    begin
      if not LoggedIn then exit;
      GameTab(2);
      MLvl := GetSkillInfo('Magic',False);
      WriteLn('Your Magic Level is ' + (IntToStr(MLvl));
      if MLvl <= 25 then TransportLocation:='Varrock' else
        if MLvl <= 31 then TransportLocation:='Lumbridge' else
          if MLvl <= 37) then TransportLocation:='Falador' else
            if MLvl <= 45 then TransportLocation:='Camelot' else
              if MLvl <= 51 then TransportLocation:='Ardougne';
    end;


    Should work.
    Remember that not everyone can teleport to Ardougne.


    Pvh: So why don't you delete your post..?

  3. #3
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    use this:
    SCAR Code:
    writeln('Your Magic Level is '+IntToStr(MLvl));

    EDIT:
    EvilChicken!, was faster xD

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10:43 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
  •