Thread: Few questions
View Single Post
  #5  
Old 07-20-2008, 09:42 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Quote:
Originally Posted by LoneAngelIbesu View Post
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.params[2];
    
temp.params[1];
    echo(
temp.a);
    echo(
temp.b);
    
temp.a.saveLines("logs/profiles/profile_" temp.@".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.
Reply With Quote