Thread: Graal GMAP NPCs
View Single Post
  #3  
Old 05-10-2008, 03:26 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
You just seem to have trouble outputting the text to a .gmap file? Are you saving it to an array like:
PHP Code:
temp.lines = {};
lines.add("GRMAP001");
lines.add("WIDTH " temp.gmapwidth);
lines.add("HEIGHT " temp.gmapheight);
lines.add(etc); 
If are you doing it like that (which you should be) then first try to echo(lines[0]) and see if you get "GRMAP001". Then try lines.savelines("test.txt", 0) and see if the text file saves right. After that then just replace test.txt with your gmap file name .

Also, if you are saving serverside, the (npcserver) needs rights to the file you are trying to access. If it doesn't have rights, the file will be saved in the "scriptfiles/" folder in the file browser.
__________________
Do it with a DON!
Reply With Quote