[AGDev-newbies] menu error

Thomas Ward tward1978 at earthlink.net
Mon Jun 5 00:17:14 BST 2006


Hi, Richard.
That is a pretty weird build error you got, but your statement has to 
many left and right perenthesies. It should look like
if(screen == mChoice && mLocation > 2)
The purpose for the screen variable is to distinguish what screen or 
menu you are in.  you could have written it like this just as well
if(menu == mChoice && mLocation > 2)
but since you have more screens besides menus I use a variable called 
screen which shows which screen I am in weather it is a menu, game 
screen, help screen, etc.


Richard Bennett wrote:
>
> Hey listies, I am having the following problems in my game project. I 
> have fixed them all except for like 20 or so and all but 2 of the 
> errors remaining are the following can someone help?
>
> This is the error:
>
> 279 H:\classProject\main.c [Warning] comparison between pointer and 
> integer
>
> and it is talking about this line:
>
> if((screen == mChoice) && (mLocation > 2))
>
> this is part of an example I got from Tom in how to write an audio 
> menu for a game, and want to know why this is?
>
> What is the purpose of the screen after the if((?
>  
> Richard Bennett *BEAN*
> Georgia State Phi Beta Lambda(PBL) Secretary
> personal e-mail:
> rbennett at southlink.us <mailto:rbennett at southlink.us>
> Windows Messenger(or MSN messenger):
> ichabodsparrow at hotmail.com <mailto:ichabodsparrow at hotmail.com>
> ------------------------------------------------------------------------
>
> _______________________________________________
> AGDev-newbies mailing list
> AGDev-newbies at lists.agdev.org
> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
>   



More information about the AGDev-newbies mailing list