ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: Crome969 on June 23, 2014, 11:15:22 PM

Title: [Questions] Pascal in Stealth
Post by: Crome969 on June 23, 2014, 11:15:22 PM
Discussion and Questions about the Pascal tutorial in Stealth (http://www.scriptuo.com/index.php?topic=12441.0).
Title: Re: [Questions] Pascal in Stealth
Post by: Crisis on June 24, 2014, 08:47:25 AM
You have it set so that the reader can attempt some of the things that you are demonstrating which is something that I would like to try. Do I need to get a pascal compiler or will the edit portion of stealth work?

If I need to get a compiler, are there any free ones that are good?
Title: Re: [Questions] Pascal in Stealth
Post by: Crome969 on June 24, 2014, 09:25:58 AM
You have it set so that the reader can attempt some of the things that you are demonstrating which is something that I would like to try. Do I need to get a pascal compiler or will the edit portion of stealth work?

If I need to get a compiler, are there any free ones that are good?
I wroted and executed those samples with the Stealth Editor.
Whenever i pointed out things from web, i guess people had a hard time getting samples working wich are made for working with delphi.
So i decided to work on all samples via Stealth Code-Editor
Title: Re: [Questions] Pascal in Stealth
Post by: Crisis on June 24, 2014, 03:05:55 PM
Okay I was trying this out in the stealth editor and I nothing is happening.

Code: [Select]
Program StructureTutorial; 

const
    Message = 'Hello Scriptuo!'; 

var
    ValueMin : Double;
    ValueMax : Double;

procedure SendMessage(Text:String);
begin
    AddToDebugJournal(Text);
end;
begin
    SendMessage(Message);
end.

If we now press play you should see a small console opens up and prints the content of our passed information. - This is what was at the end of your tutorial for this part.

What am I missing or what did I do wrong?
Title: Re: [Questions] Pascal in Stealth
Post by: Crome969 on June 24, 2014, 09:15:32 PM
(http://i.imgur.com/nNqjr8v.jpg)

I get the console output in the grey window, you?
Title: Re: [Questions] Pascal in Stealth
Post by: Crisis on June 24, 2014, 10:09:52 PM
lol to be honest I may have missed that though I see it now when I run it. I was actually expecting to see a gump window or something like that to appear.
Title: Re: [Questions] Pascal in Stealth
Post by: Crisis on June 28, 2014, 11:07:05 AM
Okay I am getting a compiler error when trying to run one of the samples and I am not sure where my error is. I will show a screenshot of the error as it showed when I ran it and then a second one so you can see what the line looks like.

(http://thedemigod.com/pics/error1.jpg)



and



(http://thedemigod.com/pics/error2.jpg)



What did I do wrong?

Title: Re: [Questions] Pascal in Stealth
Post by: Crome969 on June 28, 2014, 12:29:01 PM
Calcresult is an attribute of the datatype "TMathObject". Either you or me forgot to add it to the Code. Look into the Spoiler  here (http://www.scriptuo.com/index.php?topic=12441.msg104160#msg104160)