Hi im finally getting around to learning script with Lite-C Workshops ,but i got a small problem already.
im on Workshop 03: Functions.
And every time i try to run my code it dont ,and i cant see a problem with it?.
i got to the part which my code is
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
var my_age = 19;
var days_a_year = 365;
var number_of_days; // we need to calculate this value
////////////////////////////////////////////////////////////////////
PANEL* pDisplay =
{
digits (10, 10, 5, *, 1, number_of_days);
flags = VISIBLE;
}
////////////////////////////////////////////////////////////////////
function main()
{
screen_color.blue = 150;
compute_days();
}
////////////////////////////////////////////////////////////////////
function compute_days()
{
number_of_days = my_age * days_a_year;
}
////////////////////////////////////////////////////////////////////
But every time i try to run it i get a error that says
Error im 'MAIN' line 17: 'compute_days' undeclared identifier
< compute_days();>
.Can't compile SCRIPT03.C
Please Help.