Illegal function definition when i try to declare a function
Posted: Mon Sep 16, 2013 11:25 pm
Hi,
This is a function that i took from a tutorial, but if i try to save the script it says:
Error line 2: Illegal function definition in ex10006149964313
Error line 6: Expected ;
What am I doing wrong
Thanks
This is a function that i took from a tutorial, but if i try to save the script it says:
Error line 2: Illegal function definition in ex10006149964313
Error line 6: Expected ;
- Code: Select all
void MyFunction1(int variable1)
{
CreateActor("Arrow", "Test_Arrow", "(none)", "(none)", 0, 0, false);
Arrow.angle = direction(Archer_A.x, Archer_A.y, collide.x, collide.y);
}
What am I doing wrong
Thanks