Results 1 to 8 of 8

Thread: IntToStr? Whats wrong here?

  1. #1
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    IntToStr? Whats wrong here?

    ok, so IntToStr converts an integer into a string right?

    k, so i want this to say what the person's combat lvl is in the debug.

    SCAR Code:
    WriteLn('Good, Combat lvl is'+IntToStr(GetCombatLevel)+'which is 20+';

    i get this error.

    Code:
    Line 401: [Error] (12901:70): comma (',') expected in script C:\ProgramFiles\SCAR 3.14\Scripts\Made\********.scar
    Edit: My bad, figured this out the second after i posted it. I would really appreciate a mod to delete this post, please. I just forgot to put the stupid ).

  2. #2
    Join Date
    Dec 2006
    Location
    UK!!
    Posts
    910
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    combat := getcombatlevel;
    If combat > 20 then
    WriteLn('Good, Combat lvl is '+IntToStr(combat)+);
    If combat < 20 then
    WriteLn('oh noes combat is only'+IntToStr(combat)+);

    help? lol no need for the + at the end and u forgot the )

    ~Spaz

  3. #3
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k, try this first, then if that doesn't work, you'll need to show more than the script...you didn't close your parenthesis...

    SCAR Code:
    WriteLn('Good, Combat lvl is'+IntToStr(GetCombatLevel)+'which is 20+');

    BTW, you'll need to put a space in...so it'll be
    SCAR Code:
    Writeln('Good, Combat lvl is '+IntToStr(GetCombatLevel)+' which is 20+')
    ...or it'll be "good, combat lvl is40which is 20+" when it happens, of course i just used 40 as an example

    EDIT: spaz beat me...but it's ok mine was better IMO
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  4. #4
    Join Date
    Dec 2006
    Location
    UK!!
    Posts
    910
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    how is urs better? mine is as if its not over 20 then u get a no lol

    ~Spaz

  5. #5
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, no need to fight, you both helped out just fine, although if you see my edit, i figured it out before. i am going to use spaztaz666 though because i like the "oh noes" part :P and yes, you are credited because its funny.

  6. #6
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i told you something you didn't have up there, because i had a feeling it was going to be a problem in the future, but yeah, the oh noes party is pretty great
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  7. #7
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Hah! Now SRL Users are even fighting about who had the better help.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  8. #8
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Read the full post, guys!
    He had it figured out already
    Closed.
    Hup Holland Hup!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Whats wrong here?
    By BobboHobbo in forum OSR Help
    Replies: 3
    Last Post: 06-20-2007, 06:25 AM
  2. Replies: 8
    Last Post: 03-23-2007, 04:20 PM
  3. Can someone tell me whats wrong with this?
    By Hey321 in forum OSR Help
    Replies: 5
    Last Post: 12-17-2006, 09:49 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
  •