Can some one help with fileacces.cfg
what i must write in it ?
I want to use function LogToFile() at textcmd but file doesnot creating
var err := LogToFile( "::gm_log.txt", "Logsss" );
print(err);
after use that code console says me {"access denied"};
help me pls
thnx
Function LogToFile
Code: Select all
FileAccess
{
Package mypackage
Extension .log
AllowWrite 1
AllowAppend 1
}
actually yes it does work in /scripts Bytehawk. Although my shard has this
of course this means any script can read/write/append to any .log file but since on my shard, we script everything ourselves so we dont have a problem with that. We can make everything go to the /log path.
Code: Select all
FileAccess
{
Package *
Extension .log
AllowWrite 1
AllowAppend 1
AllowRead 1
AllowRemote 1
}You see, I have this problem too!
http://forums.polserver.com/viewtopic.p ... 5&start=30
Problem is:
line of script:
At fileaccess is:
Why I have thoose error, I don't know
If some one know what to do, please help me! Help us!
Thanks!
p.s. like some info about core. This error I have received at change core version to 097. At version 096 it's all right!
http://forums.polserver.com/viewtopic.p ... 5&start=30
Problem is:
Code: Select all
Starting: SpawnNet
error{ errortext = "Access denied" }
syslog: [pkg/systems/serverstatus/status.ecl]: error{ errortext = "Access denied
" }
Starting: Ore Server.Code: Select all
x := WriteFile(FILENAME, arr);
if( x == error)
print(x);
syslog(x);
endifCode: Select all
FileAccess
{
Package serverstatus
Extension *
AllowRead 1
AllowWrite 1
AllowAppend 1
AllowRemote 0
}Thanks!
p.s. like some info about core. This error I have received at change core version to 097. At version 096 it's all right!