Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   savelines() unable to create files (https://forums.graalonline.com/forums/showthread.php?t=66561)

Yen 06-09-2006 02:01 AM

savelines() unable to create files
 
I had a script logging things such as item trades.
The file it saved to didn't exist, but I thought it would create it; it didn't.
If this isn't intended, could it be fixed?

I planned on having it make a log file for each player, so situations can be dealt with without having to search through a huge text file; as it is, I have to rename it every 3 days because it exceeds 2000 lines.

VulcanP2P 06-09-2006 02:10 AM

Quote:

Originally Posted by Yen
I had a script logging things such as item trades.
The file it saved to didn't exist, but I thought it would create it; it didn't.
If this isn't intended, could it be fixed?

I planned on having it make a log file for each player, so situations can be dealt with without having to search through a huge text file; as it is, I have to rename it every 3 days because it exceeds 2000 lines.

I've had this problem before. I think it is supposed to create the file but for some reason it doesn't.

Admins 06-09-2006 10:40 AM

It doesn't work at all or it doesn't work at certain times ?

Yen 06-09-2006 09:07 PM

Quote:

Originally Posted by Stefan
It doesn't work at all or it doesn't work at certain times ?

It doesn't work at all.
Unless the file is already there, nothing is saved.

Yen 06-11-2006 12:22 AM

According to someone, it DOES save, but the file doesn't appear in the file manager until the server is restarted.

xXziroXx 06-11-2006 01:20 PM

Uhm, just add this to the line after savelines():

sendtorc("/refreshfilelist");


All times are GMT +2. The time now is 10:35 PM.

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