Quote:
|
Originally Posted by Warcaptain
Has to be serverside.
|
Duh.
Heres what I tried (file and location are not the same for *security* reasons or whatever):
NPC Code:
function onActionServerside()
{
if (params[0] == "DeleteFile") {
echo( "wee"); //Confirms that it get this far
deletefile( "levels/folder/filename.txt" ); // Yes, im trying to delete a .txt
sendtorc("/refreshfilelist"); // Updating the folder
}
}