Results 1 to 3 of 3

Thread: Error

  1. #1
    Join Date
    Apr 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Error

    Why is this not possible???

    SCAR Code:
    Until  IsUpText(MonsterName='')

    Failed when compiling
    Line 135: [Error] (15265:1): Type mismatch in script C:\Program Files\SCAR 3.12\Scripts\Fighter.scar

    and this compiles good:s

    SCAR Code:
    Until IsUpText('Goblin')

    PLS help me

  2. #2
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I don't really understand what you're trying there.. BUT if you mean something like...

    SCAR Code:
    program New;

    const
      MonsterName = 'Goblin'; // Monster name.

    begin
      if IsUpText(MonsterName) then
        writeln('woo')
      else
        writeln('no.');
    end.

    That compiles.

  3. #3
    Join Date
    Apr 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thx

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
  •