Re: Bgt Brace Issue
I've gotta agree with you on that one. The compiler sometimes can be pretty annoying when it comes to telling you where you messed up. But @10, I'll certainly give that all a try pretty soon here, and thank all of you a lot for all the help you've given me. I sure do
Re: Bgt Brace Issue
Where it gets tricky is when you've got nested statements. Get in the habit of counting braces, and make sure that you end up with 0 open when your function is completed. You might encounter bugs in behavior if they're in the wrong places, but you will compile
Re: Bgt Brace Issue
Where it gets tricky is when you've got nested statements. Get in the habit of counting braces, and make sure that you end up with 0 open when your function is completed. You might encounter bugs in behavior if they're in the wrong places, but you will compile
Re: Bgt Brace Issue
I've developed a habit of writing both the opening brace and then putting the closing brace after that, then filling the space in between with code.Since then, the number of these annoying errors has drastically reduced.
URL: https://forum.audiogames.net/post/411930
Re: Bgt Brace Issue
A couple issues1. Your not using question correctly. For starters, the return type is double, not int. also, the signature is double question(string title, string text).Meaning you'd want something likedouble answer = question("rules and instructions", "
Re: Bgt Brace Issue
Well, I don't know why, but when I wrote out the whole file again, I didn't get any errors. Until I tried to do that question answer type thing.void question(){int answer;answer = question("Would you like to view the game instructions and rules?");if(answer
Re: Bgt Brace Issue
Well, I don't know why, but the bgt program must really not like the file I was using to write that code in, because when I wrote it all out again, I got a total of 0 errors. That is, until I tried to do that question answer type thing. Here's the code which I am
Re: Bgt Brace Issue
I can't help you with the menu issue, because I have never used it and don't have a copy of it.
URL: https://forum.audiogames.net/post/411575/#p411575
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin
Re: Bgt Brace Issue
Ahh. I may have forgotten to include the #include code in my original post, but that string is for a third-party menu I'm using, because I don't like dynamic menu. When I use the old matcher script to check if i have any unclosed or overclosed braces, it comes up fine
Re: Bgt Brace Issue
The only error that I see is the one about string constant when I try to compile:On line: 6 (28)Line: string[] items="Play game","Explore the grid","exit";Error: Expected identifierOn line: 6 (28)Line: string[] items="Play game",
Re: Bgt Brace Issue
Thanks, I appreciate the help. But, when I entered the code as you wrote it, I now get an unexpected token error on line 5
URL: https://forum.audiogames.net/post/411541/#p411541
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
Re: Bgt Brace Issue
So, this is caused when braces do not match, or braces are not where they should be. Keep in mind that BGT needs no brace if there is only one action to be performed based on a condition check. Like so:if(A > 0)A *= B;However, braces are needed if there is more t
Re: Bgt Brace Issue
Sorry, I'm still getting the error. I removed the ; as you specified and furthermore removed the extra {, but I'm still getting the same error on the same line.
URL: https://forum.audiogames.net/post/410962/#p410962
--
Audiogames-reflector mailing list
Audiogames
Re: Bgt Brace Issue
Hi,Delete the ; in play_game(); that's not needed when you declare new functions. And remove that extra { after play_game.Regards,Amit
URL: https://forum.audiogames.net/post/410714/#p410714
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin
Re: Bgt Brace Issue
Hi,Before you declared the play_game, you have put 2 braces. Remove one of them. Then remove the ; from play_game, it's not needed when you declare functions. And finally, remove an extra { after the play_game.Regards,Amit
URL: https://forum.audiogames.net/post/410713
Bgt Brace Issue
Hello:So recently, after deciding to reread the Bgt manual to familiarize myself with its basic concepts again, I have decided to start on a program. However, I'm running into a small but extremely annoying error. I keep getting an unexpected token error on the 25th line
16 matches
Mail list logo