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 / Help Save Game

Author
Message
rudex
13
Years of Service
User Offline
Joined: 8th Dec 2010
Location:
Posted: 8th Dec 2010 17:05
I begin the adventure from The dark GDK

How I can do option save game if I can't load library <fstream>





this is my game:


Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 8th Dec 2010 19:41 Edited at: 8th Dec 2010 19:41
You just need to change one of the compiler settings:

Project->Properties->Configuration Properties->C/C++->Code Generation
Change Runtime Library to: Multi-threaded(/MT)

rudex
13
Years of Service
User Offline
Joined: 8th Dec 2010
Location:
Posted: 8th Dec 2010 21:15
thanks working
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 8th Dec 2010 21:49
A little tip.

Whenever working with <fstream>, you might want to include <iostream> before it. Gives you some extra input/output capabilities for files.

http://ref.darkgdk.us/ <- Online DarkGDK Refernece. More content coming soon.
rudex
13
Years of Service
User Offline
Joined: 8th Dec 2010
Location:
Posted: 9th Dec 2010 12:29
I need hands how i can do save game,Maybe some tutorial or example code
rudex
13
Years of Service
User Offline
Joined: 8th Dec 2010
Location:
Posted: 9th Dec 2010 16:23
This my code sava/load

rudex
13
Years of Service
User Offline
Joined: 8th Dec 2010
Location:
Posted: 10th Dec 2010 23:43 Edited at: 11th Dec 2010 22:21
I did


I have still the small problem

How can I save bats's co-ordinate for player1 & player2.



I can't convert (player2.movement()) = atoi(dbReadString(1));
(player1.movement()) = atoi(dbReadString(1));

error C2106: '=' : left operand must be l-value
error C2106: '=' : left operand must be l-value

Please Help

Login to post a reply

Server time is: 2024-11-19 16:39:28
Your offset time is: 2024-11-19 16:39:28