Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / noob question about just c++ no gdk haha

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 19th Mar 2009 23:30
ok i am just learning c++ and decided to make a little text adventure but when i use a for loop to setup the 5 enemies it doesn't do it. i don't know why though. heres the code:



ideas?

New Site! Check it out \/
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 19th Mar 2009 23:51 Edited at: 19th Mar 2009 23:52
i think it's something to do with this:

you declare x as 0 and only run the loop if it's greater than 5. I'm not too great at reg c++ but that looks like the problem.

EDIT: Just reread your post and i think you meant to do:
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 20th Mar 2009 00:03
whoops! sorry thanks! lol

New Site! Check it out \/

Login to post a reply

Server time is: 2024-11-25 16:50:36
Your offset time is: 2024-11-25 16:50:36