Game Development Community

Please Help With Hello World

by Milan · in Torque Game Engine · 11/13/2004 (12:20 pm) · 2 replies

Please help i wrote out just like it says in the book heres what i wrote. When i launch it works however doenst print "Hello World"
:


//===================================
// HellowWorld.cs
//
//This module is a program that prints a simple greeting on the screen.
//
//===================================

// function main()
//---------------------------------------------------------------
// Entry point for the program
//---------------------------------------------------------------
{
print("Hello World") ;

}

About the author

Recent Threads


#1
11/13/2004 (12:30 pm)
I think that you want

function main()
{
print("Hello World") ;

}

the two slashes infront of function main() should be whats causing the prob.
#2
11/13/2004 (12:35 pm)
Yes it worked


//==============================================================
// HelloWorld.cs
//
// This module is a program that prints a simple greeting on the screen.
//
//==============================================================

function main()
{
print("Hello World") ;

}


Thanks alot