Quote:
Originally Posted by LoneAngelIbesu
Your NPC-Server has rights to logs/profiles/*.txt, but you're trying to write to a file in profiles/*.txt. Your NPC-Server needs read-write rights to profiles/*.txt. Either that, or you need to use temp.a.saveLines("logs/profiles/profile_" @ params[1] @".txt",0);
|
Oops, yeah I was messing with the command trying to get it to work so I removed logs to check if maybe it only needed the last file in the path, but that didn't work either.
PHP Code:
case "SaveProfile":
temp.a = params[2];
temp.b = params[1];
echo(temp.a);
echo(temp.b);
temp.a.saveLines("logs/profiles/profile_" @ temp.b @".txt",0);
break;
This doesn't work either, it fails to change anything in the file whether I put '/logs' or leave it out.
The exact filepath (checking from the file browser) is:
logs/profiles/profile_The_Kez.txt
So I don't know, I'm baffled by this one.