From: Matthew Heyman Newsgroups: comp.os.msdos.djgpp,comp.graphics.algorithms Subject: Re: struct problem Date: Mon, 09 Aug 1999 20:06:21 +0000 Organization: Airnews.net! at Internet America Lines: 22 Message-ID: <8432818566957DB4.DF5776918DB4D437.AD3715803EC19E27@lp.airnews.net> X-Orig-Message-ID: <37AF34BD DOT 7D9B AT airmail DOT net> References: <37AF5947 DOT 66951F05 AT NOSPAMthepentagon DOT com> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library2.airnews.net NNTP-Posting-Time: Mon Aug 9 20:06:42 1999 NNTP-Posting-Host: !bE`)1k-XKV.%p` (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01C-KIT (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Satriani wrote: > > Try this instead: > > vert_3d p000; > vert_3d p000 = {0,10,20}; > > OR, assign the vector within a function. > > Justin > That works now, but when I try to access such variables like in this piece of code here... Zoff = player.pz - p000.z I get the same problem. This is inside a function, mind you. The player.pz is the players position within the game, using only int. I don't know enough about structs to fix the problem..... Matthew Heyman