NXC: compile error using DrawLine
Posted: 08 Feb 2011, 16:23
hi,
I get a compile error with this code:
I can't get a help example to Drawline but I assume its
DrawLine(x1,y1, x2,y2).
So what's wrong?
I get a compile error with this code:
Code: Select all
int i, peak;
DrawLine ((i+1)/2, 0, (i+1)/2, peak);
DrawLine(x1,y1, x2,y2).
So what's wrong?
# Error: ';' expected
File "c:\temp\temp.nxc" ; line 47
# 15 ((
#----------------------------------------------------------
# Error: Invalid assignment
File "c:\temp\temp.nxc" ; line 47
# 15 ((i+1
#----------------------------------------------------------
# Error: ';' expected
File "c:\temp\temp.nxc" ; line 47
# 15 ((i+1
#----------------------------------------------------------