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
#----------------------------------------------------------