The MASM Forum Archive 2004 to 2012

Project Support Forums => HLA Forum => Topic started by: Open Source Pong on April 15, 2008, 04:13:31 PM

Title: Problems
Post by: Open Source Pong on April 15, 2008, 04:13:31 PM
I'm trying to compile this little bit of code:

cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
end class;


However the compiler generates an error. Could someone please lok into this.

Sincerely,

Open Source Pong
Title: Re: Problems
Post by: Sevag.K on April 16, 2008, 03:44:53 AM
What's the error?

Is that just a part of what you're compiling or the whole?  If that's it, there is nothing to compile, those are just declarations.
Title: Re: Problems
Post by: Evenbit on April 16, 2008, 05:08:22 AM
Try this...
type
cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
endclass;
endtype;

Nathan.
Title: Re: Problems
Post by: Randall Hyde on April 17, 2008, 05:03:46 PM
Quote from: Open Source Pong on April 15, 2008, 04:13:31 PM
I'm trying to compile this little bit of code:

cGameObject: class

                           var
                               x:int32
                               y:int32
                              vx:int32
                              vy:int32
end class;


However the compiler generates an error. Could someone please lok into this.

Sincerely,

Open Source Pong

You need semicolons at the end of each declaration, e.g., "vy:int32;"
hLater,
Randy Hyde