Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   servside savestring? (https://forums.graalonline.com/forums/showthread.php?t=71304)

projectigi 01-07-2007 01:56 PM

servside savestring?
 
Yeah I did something like this

NPC Code:

this.test = "blub";
this.test.savestring( "levels/blub.txt", 0 );


and
NPC Code:

this.test = "blub";
this.test.savestring( "blub.txt", 0 );



there snot any blub.txt in levels/ :<

contiga 01-07-2007 02:13 PM

Quote:

Originally Posted by projectigi (Post 1262228)
Yeah I did something like this

NPC Code:

this.test = "blub";
this.test.savestring( "levels/blub.txt", 0 );


and
NPC Code:

this.test = "blub";
this.test.savestring( "blub.txt", 0 );



there snot any blub.txt in levels/ :<

PHP Code:

this.test = new TStaticVar();
this.test.var1 "blub";
this.test.savevars"levels/blub.txt"0); 


projectigi 01-07-2007 02:16 PM

doesnt work
and this woudl kinda screw up .png data :>

Skyld 01-07-2007 06:55 PM

I am not sure whether NPC-Servers have been updated yet (and if so, which ones), but you might need to give (npcserver) write rights to that folder.

Riot 01-07-2007 07:32 PM

In RC: /refreshfilelist

I have to do this whenever I add a file using a script otherwise I can't see it.

Chompy 01-07-2007 08:08 PM

sendtorc( "/refreshfilelist"); after obj.savestring()


All times are GMT +2. The time now is 12:43 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.