Posted By: sadsack
functions - 09/28/08 00:38
hello,
Can some one tell me why this function is not working.
This is very simple code.
Thank you
renny
Can some one tell me why this function is not working.
This is very simple code.
Code:
#include <acknex.h>; //You need these includes at the start of your main script.
#include <default.c>;
//////////////////////////////declared function/////////////////////////////////////////////////////////////
function one();
function main()
{
//This section happens once when the function is run initially
level_load("");
wait(3); //Wait required for level load
}
////////////////////////////////calling the function//////////////////////////////////////////////////////
while(1)
{
//This section happens every frame due to a while loop.
one();
}
wait(1);
/////////// function////////////////////////////////////////////////////////////////////////////////
function one()
{
{sys_exit("bye bye...");}
}
Thank you
renny