Is case ',': in a switch statement? if not, then there is your problem.
if static char *ptr; is inside a switch statement but not under a case label, then that may be your issue.
Search found 79 matches
- Mon Dec 19, 2011 6:27 am
- Forum: Programming Discussion
- Topic: [SOLVED]error: a label can only be part of a statement...
- Replies: 2
- Views: 1384
- Sat Dec 03, 2011 10:30 pm
- Forum: Game Development
- Topic: Loading 2D Tile-Based Maps?
- Replies: 9
- Views: 2952
Re: Loading 2D Tile-Based Maps?
There is a better way to load tiles, not in a array but instead from a text file It's going to be loaded into an array from the text file as constantly reading from a text file is stupid and slow, you load the data from the text file into an array, close the file and loop from that array. But after...
- Thu Nov 24, 2011 10:49 am
- Forum: Game Development
- Topic: Manaforge Tower Defense
- Replies: 88
- Views: 21965
Re: Accela Tower Defense
Very nice, the whole combat part seems to be coming together! Keep it up mate.
- Sun Nov 20, 2011 1:48 am
- Forum: Programming Discussion
- Topic: PHP Writing to a file
- Replies: 11
- Views: 2892
Re: PHP Writing to a file
Well, good old wikipedia can help you to learn a chmod: http://en.wikipedia.org/wiki/Chmod What's strange is the fact that the script is being run under the "others" category, that is why using 777 worked, as 777 means give permission to all, and 775 means give "others" permissio...
- Tue Nov 15, 2011 8:03 pm
- Forum: Programming Discussion
- Topic: PHP Writing to a file
- Replies: 11
- Views: 2892
Re: PHP Writing to a file
Throw everything you can at it. Try chmod to 777, try the mode "a+" after that. Sometimes you just need to figure out whats going wrong via brute force.ajtgarber wrote:Chmodding the chat.txt? If so, its still telling me that it can't open the file (for writing)
- Sun Nov 06, 2011 10:12 pm
- Forum: General/Off-Topic
- Topic: Its Mario
- Replies: 7
- Views: 3026
Re: Its Mario
Well, my day has just been made!
- Thu Nov 03, 2011 9:16 am
- Forum: Programming Discussion
- Topic: Component based behaviorless entity systems and scripting
- Replies: 21
- Views: 7241
Re: Component based behaviorless entity systems and scriptin
lol. Well, i was going to tell you to fuck off since our last little conversation but... oh fuck it, :twisted: FUCK OFF! :twisted: Anyway... Let's say, I want my entire game logic to be scripted (with Lua or C#/Mono, I guess). The game engine itself should not know anything about particular game, t...
- Tue Nov 01, 2011 1:17 am
- Forum: Programming Discussion
- Topic: Component based behaviorless entity systems and scripting
- Replies: 21
- Views: 7241
Re: Component based behaviorless entity systems and scriptin
Sense no make.Rebornxeno wrote:How about trying to develop a specific game first, and then extracting the "engine" part of it that you feel might be useful in other projects, instead of developing an engine.
- Tue Oct 18, 2011 7:36 am
- Forum: Programming Discussion
- Topic: data storage
- Replies: 17
- Views: 4161
Re: data storage
...Roll your own. This. There's no need for a database, you're better off making something yourself which does exactly what you need without all the unneeded SQL stuff which is slow and useless for a game. When should you use a database then? When in need of storing massive amounts of data. MMO's t...
- Wed Oct 12, 2011 6:14 pm
- Forum: Game Development
- Topic: Where to start ... (C++) ?
- Replies: 29
- Views: 11144
Re: Where to start ... (C++) ?
As people have stated above, grab a good book (really any set of books!), stick your head in it for a few hours, grab an IDE, Visual C++ express or otherwise. Write the standard set of crap, you know, Hello, World! for example. And don't forget to analyze what the hell you wrote when doing: #include...
- Wed Oct 12, 2011 6:06 pm
- Forum: Programming Discussion
- Topic: Something Strange
- Replies: 7
- Views: 2310
Re: Something Strange
maybe the ide provides some sort of sandbox which does alter its behavior by putting in hooks for each line so the debugger can work. 'in the wild' code just gets executed That's a possibility, but i guess it's not really something to get too caught up on. There is probably a most simple solution t...
- Wed Oct 12, 2011 2:05 am
- Forum: Programming Discussion
- Topic: Something Strange
- Replies: 7
- Views: 2310
Re: Something Strange
Yep, i did try running in debug and release, same result. The program links to the proper DLL's meaning the debug vs release versions. However i have not tried making things volatile, except for that closing variable. I shall look into it!
- Tue Oct 11, 2011 8:54 pm
- Forum: Programming Discussion
- Topic: Something Strange
- Replies: 7
- Views: 2310
Re: Something Strange
Ahh, now that is something i had no idea about. I had always assumed that threads were executed in some sort of set order. Seems i shall have to hit the books and study a lot more on threading. But i am still a bit curious. Would there be anything at all that would cause the application to fail outs...
- Tue Oct 11, 2011 5:02 am
- Forum: Programming Discussion
- Topic: Something Strange
- Replies: 7
- Views: 2310
Something Strange
Well, i just spent a few hours trying to debug my application, and i realized a possible issue in Visual Studio C++ as well as Human error. So i am doing a bit of multi-threading and so i decided to write a few classes to keep the nasty disgusting windows/X api's away from me. The classes i wrote we...
- Sun Oct 09, 2011 8:30 pm
- Forum: Programming Discussion
- Topic: Thirst for knowledge!
- Replies: 11
- Views: 2682
Re: Thirst for knowledge!
Again I'd love to know where you guys learn design rules like these in the first place, because I was taught there was such a thing as a class, etc and how they work, but never how they should work in relation to what you're doing with them, if you get me. Well, for classes i guess you could look a...