Page 1 of 2
Scripting Lessons
Posted: Wed Aug 29, 2001 2:53 pm
by Xyx
The [url="http://nwvault.ign.com/dm/scripting/course/index.shtml"]NWScript Scripting Lessons[/url] really start to take off now.
Want to learn? Have a look.

Posted: Wed Aug 29, 2001 3:59 pm
by Craig
I know a bit ill look at em
Posted: Fri Sep 14, 2001 3:53 am
by Garcia
hrrf I can't make it work eventhough I wrote what it said 100 % correct I won't compile if I press yes or no. it says impossible to compile default project.....do anyone know why??
Posted: Fri Sep 14, 2001 4:03 am
by Garcia
okay now that works now it says that it is not up-to-date!!??? if I press the re-build button nothing if no I get the dos window but it doesn't say 'hallo world'?
Posted: Fri Sep 14, 2001 6:10 am
by Xandax
Aahh - the "hello world" program (I wonder if there is any programmer tha hasen't made this program

)
Does the program compile correct and what happens when excecuting the program.
Posted: Fri Sep 14, 2001 6:31 am
by Garcia
oh hi Xan
This really pisses me off I have tried things much more difficult than this. I can fully program any homepage or site in html but I cant get this darn thing to work
the rundos says return code -1
and then it gives me the execution time.....
"press any key to continue" continue to what! it only closes the program and now hallo world for me!'
perhaps i am missing a prototype for my printstring?
Posted: Fri Sep 14, 2001 8:25 am
by Xandax
This may sound stupid, but do you have the stdio.h and nwscript.h files?
And if you do - try posting your program.
[ 09-14-2001: Message edited by: Xandax ]
Posted: Sat Sep 15, 2001 9:55 am
by Garcia
Umm I am not sure to tell the truth
it is on my other computer so I will try and see it would be a stupid thing to lag.
are you reading datamatics Xan?
Posted: Sat Sep 15, 2001 11:18 am
by Xandax
Originally posted by Garcia:
<STRONG>Umm I am not sure to tell the truth
it is on my other computer so I will try and see it would be a stupid thing to lag.
are you reading datamatics Xan?</STRONG>
Yeah - I just started computer science (datamatiker) last week
The files should be placed in a directory and the program should be pointed towards this directory.
The stdio.h is the input/output file where the definitions of ei. printin text on screen is located.
This could explain the error.
Otherwise - post the program so we can look at it

Posted: Wed Sep 19, 2001 12:32 am
by Garcia
thx

I will look in to it today here at work

(slow period right now a little advantage of being an accountant...perhaps the only one?!)
It doesn't really matter if the program works or not but now it has become an obsession. it must work!!!
[ 09-19-2001: Message edited by: Garcia ]
Posted: Wed Sep 19, 2001 12:53 am
by Tamerlane
Originally posted by Garcia:
<STRONG>it must work!!!</STRONG>
Love the enthusiasm, Good Luck
Posted: Wed Sep 19, 2001 1:06 am
by Garcia
Stupidity/enthusiasm

Posted: Wed Sep 19, 2001 1:49 am
by Garcia

1...2...3...4...5...6...7...8...9...10!
ahhh that help
// my single line comment
#include <stdio.h>
#include <NWScript.h>
void main()
{
string sHello = "Hello World...\n";
PrintString ( sHello );
}
"this is what it is suppose to look like right?"
"I have now followed the installation step by step (instead of cliking next next next...

)
and done exactly as told the two files NWScript.h and stdio.h are both in the C:\lcc\inlclude directory."
"when I compile->make it gives me: (here we go)"
Error c:\lcc\lesson1.c: C:\lcc\include\nwscript.h:12 redefinition of 'printString' previously defined at + c:\lcc\include\nwscript.h 11
Error c:\lcc\lesson1.c: c:\lcc\include\nwscript.h:17 redefinition of 'PrintIntger' previously defined at + c:\lcc\include\nwscript.h 16........etc.
"there must be a little mix-up with the directory" ???????????????
Posted: Wed Sep 19, 2001 5:42 am
by Garcia
Posted: Wed Sep 19, 2001 5:48 am
by Xandax
Congrats
So now we are gonna see a lot of scripts from you
Do you know what you did to get it to work or did it just work?worked??
I've looked at your code, and all it tells me, is that it didn't like something with the NWScript.h file.
We are gonna start Java tomorrow, I'm looking forward to it - unless I have to do the "Hello World" program, I've already made that i C++
[ 09-19-2001: Message edited by: Xandax ]
Posted: Wed Sep 19, 2001 6:00 am
by Garcia
thank you very much
I am gonna massproduce scrips now
now that I am a hardcore programmer I think I will take up the holy bible C++
No it didn't like the NWscript.h so I tried to change directory so that it could find it...that didn't help then I closed the program and opned it again later and it worked first time!???
a lot of my friends are reading data m. I just like learning by doing from the net and what I can find out for my self but they can do some pretty cool stuff sometimes. once they even made my old compaq (read: scumbag) work!!!

Posted: Fri Sep 28, 2001 3:02 am
by Tamerlane
Well done old chap.
Sorry about the lateness, haven't been on the net for a while
[ 09-28-2001: Message edited by: Tamerlane ]
Posted: Fri Sep 28, 2001 4:25 am
by Garcia
Thank you!. I needed your mental back-up for that killer asignment, where have you been

Posted: Fri Sep 28, 2001 9:00 pm
by Tamerlane
I have exams coming up (next few weeks). So I've been hitting the books more often. I'll pop in now and then.

Posted: Wed Oct 03, 2001 2:26 am
by Garcia
Originally posted by Tamerlane:
<STRONG>I have exams coming up (next few weeks). So I've been hitting the books more often. I'll pop in now and then.

</STRONG>
I am sure you will M8

good luck with the exams and do remember there are more important things than exams...posting in GameBanshee
