Results 1 to 5 of 5

Thread: comma ',' expected? :S

  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default comma ',' expected? :S

    i've got a problem:

    IsUpText('bronze':String):Boolean

    [Error] (14635:17): comma (',') expected in script

    why do i need a comma and where?

    thx sven

  2. #2
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by svarrio View Post
    i've got a problem:

    IsUpText('bronze':String):Boolean

    [Error] (14635:17): comma (',') expected in script

    why do i need a comma and where?

    thx sven
    show more of the surrounding script( are you using it as a if or a procedure? )

    because they have different fixes

  3. #3
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol,

    this is the right text...
    SCAR Code:
    if isuptext('bronze') then
    because

    when you look it up in include you see that :string and the :boolean thats bc
    :string means the stuff before it is a string(text) and the :boolean(true or false) says you can use it as a if isuptext('bronze') then a boolean results true or false if it find the uptext then it results true so ''if isuptext('ronze') then do somthing''
    need more info add me on msn


    ~Hermpie

  4. #4
    Join Date
    Sep 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default thx

    eej thx man

    now i can finish the power miner

    okej i'll add u

    thx again

  5. #5
    Join Date
    Oct 2007
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Or there is this.
    SCAR Code:
    Procedure FindTextss;
    Begin
      If IsUpTextMulti('Bronze, Iron, Steel') then
        Begin
         Stuff;
        End;
    End;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Error]: comma (',') expected in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 20
    Last Post: 05-22-2008, 12:27 AM
  2. comma expected in script
    By Awkwardsaw in forum OSR Help
    Replies: 16
    Last Post: 05-03-2008, 02:48 PM
  3. Replies: 9
    Last Post: 04-16-2007, 08:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •