Originally Posted By: Badrizmo
@LemmyTheSlayer: Parenthesis in this case is useless as the && operator precedence is lower than the == so the code will be be the same with or without the parenthesis. check this page http://www.difranco.net/cop2220/op-prec.htm

@JohnnyIsDutch: I think you should add () at the end of your action name, as far as I remember it is required in lite-c. Give it a try and let me know the results. Also if you can write the exact error message you got.

For now replace
action player_move

With
action player_move()

If you have time you may check lesson 10 in the Lite-c workshops, here is the link
http://tutorial.3dgamestudio.net/


i have a simple code with the same error "error in main"
but () isn't work, here is the error


and the code:


Code:
// noname.c

function main()
{
  level_load("noname.wmb");		// load level newlevel.wmb
}

action player
{
	player = me;
}



Last edited by JohnnyIsDutch; 05/30/10 08:06.