thanks and about the mapPath[50] that was just expirmenting trying to work it out my self. Thanks for the advaice I have a stab at it.
Type: Posts; User: zidsal
thanks and about the mapPath[50] that was just expirmenting trying to work it out my self. Thanks for the advaice I have a stab at it.
Well I am trying to mimic my old c++ code of the map readers. But I am having lot of trouble here is what is suppose to happen:
3 parts to the string FilePath
1.The file path to where to find...
thanks alot guys, I would of never realised I was using "%d" instead of "%s"
It may be because its so late but I've started re-reading up on C and i've been messing around with structures and writing to files. Anyway I've been trying to save some structures to a file and they...
well I've made a simple program. It draws some shapes onto the screen. I have also made a timer which increases the x of the shapes every 5 seconds so it appears that its moving.
The issue is its...
well my way is proberly the most basic way to do it (its not even in binary).
first of all set it so only 1 number is on 1 line i.e
272 //x
729 //y
383 //x
int main()
{
well my mapping system is around 80% complete done because the basics are now complete BUT
one bug thats been developed. Its a really annoying bug but its nothing major.
filename =...
sorry to double post. I did cheak the forum rules and they never said it isn't allowed but I am sure its going to be one of those un written rules like necroing.
I know it seams I am getting...
too make life easyer for me I just load the details of the room thats needed. If the player requests to move I then clear the details of the variables and reloads the new details into place.
if...
o.k I kept gettin g the same error, sometimes it would produce compile errors sometimes it would say it was out of memory. The sollution is a reboot and now it works like a charm. Thanks guys.
well I have now got an error I have never seen before in dev c++. When I hit compile it says out of memory allocating 65536 bytes. It dosn't highlight any lines. Once this error shows up windows then...
from what I managed to understand from this, it may be problamatic later on in the program. The reason I wnated it as a char array instead of a string is so I could convert it to a integer later on....
well I have been messing around with file input and output as well as trying to fix up my old text based adventure game. At the moment everythink is going well and I already have planned how I will...
how would I go about throwing away a line? not really used the fstream libary before.
first of all thank you for your time but I have come to a point where I need the community's help. I have looked on google and searched the forums but I can still not find the answer I am looking...
thanks very much, I feel stupid as the solution was really simple, I am getting a error again now I will edit this post if I can't fix it with in a hour or so.
thanks again
zidsal
Well, I have been self learning c++ for a while now and I decided to try and make a text based adventure game, my efforts are going well including the addition of randomized combat but I have a small...