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 / why is this not working SetCurrentDirectory ( "levels\New Folder" );

Author
Message
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 28th Jan 2008 23:38
why is this not working SetCurrentDirectory ( "levels\New Folder" ); im trying to set the directory for my levels. but it will not work.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 28th Jan 2008 23:59
'\' is the escape character, and essentially removes the next letter. You should use a '/' instead.

Your signature has been erased by a mod
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 29th Jan 2008 01:17
I so stupid i should have seen that its been a long day.
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 29th Jan 2008 02:50
Help when i use this code it will not load my sky or ninja
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Jan 2008 10:16
Uh, I think it is not '/', but '\\' :



It is right that '\' is a control char, that's why it must go repeated.
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 29th Jan 2008 20:05
I tryed that still nothing it is loading my level but not my sky. the level and media folders are both in my main folder.
Virtual X
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location:
Posted: 30th Jan 2008 18:09
try using 'dbSetDir'
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 30th Jan 2008 19:34
That did not work
jblack
16
Years of Service
User Offline
Joined: 29th Jan 2008
Location:
Posted: 2nd Feb 2008 18:13
Ok, you need to try this:



that should work, because the ../ signifies to go down in the folder hierarchy.

Login to post a reply

Server time is: 2024-11-20 01:46:39
Your offset time is: 2024-11-20 01:46:39