Results 1 to 4 of 4

Thread: How can i insert a ' into a string?

  1. #1
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    How can i insert a ' into a string?

    When I try to make this Procedure work it just says

    Line 3: [Error] (10:9): String error in script

    And it dosent say hi. I want it to say 'hi' but without the user typing the ' in the procedure. Can anyone help me with that?

    SCAR Code:
    Procedure SayStuff(s: string);
    Begin
    Writeln(''' + s + ''')
    End;

    Begin
    SayStuff(hi)
    end.

  2. #2
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    there was just a post about this recently in the FAQ. please use the search button

    SCAR Code:
    writeln('''');
    //or
    writeln(#39);
    //or
    writeln(chr(39));

  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks sorry i didnt search =/

  4. #4
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool I didn't know you could insert ' using writeln like that. I always thought that i had to use send keys or something else!
    This is for Jagex!

    My Public Scripts
    Simple AutoTalker
    Face Maker

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Insert cool Title Here
    By madman5809 in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 03-13-2008, 03:45 AM
  2. Help with click (Insert word here)
    By wade11 in forum OSR Help
    Replies: 18
    Last Post: 02-09-2007, 03:54 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
  •