Results 1 to 5 of 5

Thread: Pissing Me Off -.-

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Pissing Me Off -.-

    Well, i've tried and stuff, but i can't figured out whats wrong. I have a Type Mismatch, but no variables whatsoever. Here's the script:

    PHP Code:
    {.Script Info:
    # ScriptName  = Math Wizard
    # Author      = Hey321 A.K.A Mod Macro
    # Description = Does as many math problems as possible
    # Version     = 0.1
    # Date        = Febuary 6th, 2007
    # Comments    = Post all math problems you can think of and the equation.
    /Script Info}
    program MathWork;

    Const
     
    Number1=12;//The first number.
     
    Number2=12;//The second number.
     
    Math=1;//1 for Multiplication 2 for Division 3 for Addition 4 for Subtraction

    Procedure Multiply;
    Begin
    WriteLn
    ('Answer is:'+Number1*Number2);
    end;


    Procedure DetermineProblem;
    Begin
    If(math=1)Then
    Multiply
    ;
    If(
    math=2)Then
    Divide
    ;
    If(
    math=3)Then
    Add
    ;
    If(
    math=4)Then
    Subtract
    ;

    begin
    MathWorks
    ;
    end
    Any idea? I've searched the forums, and tried to fix it, but to no avail.

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    You forgot the inttostr

    SCAR Code:
    WriteLn('Answer is:'+inttostr(Number1*Number2));

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Aww crap. Stupid simple errors, havn't used WriteLn; in a long time, thanks for that.

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Lol I know, that dumb thing gets me all the time

  5. #5
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    Lol I know, that dumb thing gets me all the time
    Same here

Thread Information

Users Browsing this Thread

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

Posting Permissions

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