
-----------------------------------
belarussian
Thu Nov 19, 2009 6:53 pm

Need help syntax error i am just pretty much lazy and have no time have to do other work
-----------------------------------
ok so i have a syntax error it says this 

%%%%%%%%%%%%%%%%%
syntax error at 'Hello',expected identifier what should i do about this ?

if you need i could post the program and procedure i wrote

-----------------------------------
Tony
Thu Nov 19, 2009 7:00 pm

RE:Need help syntax error i am just pretty much lazy and have no time have to do other work
-----------------------------------
You should probably give the compiler an identifier.

Post just the line that the problem is at.

-----------------------------------
D_homes
Thu Nov 19, 2009 8:31 pm

Re: Need help syntax error i am just pretty much lazy and have no time have to do other work
-----------------------------------
ya... can't really help you unless you post the code...

-----------------------------------
belarussian
Thu Nov 19, 2009 9:00 pm

Re: Need help syntax error i am just pretty much lazy and have no time have to do other work
-----------------------------------
THIS IS THE CODE  NOW AND I HAVE FIXED IT 

%Draws text in the horizontal centre of the screen
%Param : text - the text we would display
%           y - the y position of the text
%        font - the font to draw the text in
%       color - the color to use to draw the text
%DrawTextInXCentre (text : string, y, font, color : int)


View.Set ("graphics:800;600")
const FontS := Font.New ("Arial:30:bold")

procedure DrawTextInXCentre (text : string, y, font, color : int)
    var width : int

    width := Font.Width (text, font)

    Draw.Text (text, (maxx - width) div 2, y, font, color)
end DrawTextInXCentre




and the one before sucked and i closed it without deleting it so iut is gone but thx for at least looking at it i know i could count on you
