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.

Author
Message
Stefan p
16
Years of Service
User Offline
Joined: 2nd Nov 2008
Location: Online
Posted: 30th May 2009 23:08 Edited at: 30th May 2009 23:09
I have a problem in my saving code can someone try to find it because i been at it all day. And it isn't a vista problem because if declare map_name$ in the function it works.






Thanks, Stefan
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 30th May 2009 23:47
i think the code looks fine, just this code:



could you change that to this and check if that works?



*ding ding*
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 31st May 2009 01:35
Bobbel, I suspect he had that originally - the forum code occasionally strips backslashes from text.

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 31st May 2009 11:27 Edited at: 31st May 2009 11:31
oh i didn;t knew that, then i have another solvement (or something like that, don;t know the word, sounds like the word to solve)

in his part of the code



you are writing the strings enemies, enumber and the array enemy. in a function, you can;t use variables from oustide the function. so if these are global, i have no idea. if these aren't, try to make some extra function parameters or make them global

EDIT: and another one, if you set this one in a function to one


and it isn't global, outside the function, the variable still stays 0. so, maybe, the map is saved, but you don;t see it because the savemap variable isn;t changed.

*ding ding*
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 31st May 2009 12:16
'solution' would be the word you were looking for ^_^

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 31st May 2009 13:48 Edited at: 31st May 2009 13:48
ah thank you and one other thing, if this isn;t the "Solution", you could always try to run it in administrator mode if you're using vista due to UAC you can;t make files on the top level of C:

*ding ding*
Stefan p
16
Years of Service
User Offline
Joined: 2nd Nov 2008
Location: Online
Posted: 1st Jun 2009 23:05 Edited at: 1st Oct 2009 00:06
Ill try with uac off but im running in admin mode and the variables are globaled. I suspected that it might be the input function because if i set the maps name in the function then it works.

Edit: It works but i don't know what i did, i know i put the backslashes their and something else could remember because it was an hour apart.


Also thanks to you all.

Thanks, Stefan

Login to post a reply

Server time is: 2024-11-24 06:24:53
Your offset time is: 2024-11-24 06:24:53