chase
(Fresh Scripter)
2002-06-28 03:17 AM
starters guide Hello World failed

My Hello World test failed:
0script error : Unknown command !
I'm a beginner. I am on Win 98. I created the file ok but then I got the error.


Howard Bullock
(KiX Supporter)
2002-06-28 03:18 AM
Re: starters guide Hello World failed

Please post your file.

Les
(KiX Master)
2002-06-28 03:21 AM
Re: starters guide Hello World failed

Post the line you use to run the script.

BTW, welcome to the board.

[ 28 June 2002, 03:22: Message edited by: LLigetfa ]


chase
(Fresh Scripter)
2002-06-28 03:26 AM
Re: starters guide Hello World failed

--------start Hello.kix-------
Hello World
-------- end Hello.kix-------

I then run kix32 hello in same directory.

C:\KiX2001.402>kix32 hello
0Script error : unknown command !
--------start Hello.kix-------


NTDOCAdministrator
(KiX Master)
2002-06-28 03:30 AM
Re: starters guide Hello World failed

You need to use quotes for the string.
The ? question mark creates a new line

code:
"hello world"



Les
(KiX Master)
2002-06-28 03:32 AM
Re: starters guide Hello World failed

Well... neither of the two words are KiX commands so the error is expected. If you were to wrap them in quotes, that would work. Also, comment lines need the semi-colon.

;--------start Hello.kix-------
"Hello World"
;-------- end Hello.kix-------


chase
(Fresh Scripter)
2002-06-28 03:50 AM
Re: starters guide Hello World failed

My first KiX script worked! Thanks to everyone.
And yes I needed the ; and the ".
Many thanks...


MCA
(KiX Supporter)
2002-06-29 01:15 PM
Re: starters guide Hello World failed

Dear,

Also welcome to the board.

See interesting stuff see also FAQ forum.
Interesting tools like kixref, kixstrip and kixcrypt you can find on our site.
greetings.

btw: symbol on our homepage has been linked to related http://kixtart.org topic.