Author Topic: Adding a line to a notepad  (Read 560 times)

I wanna know how to add a line to a notepad i tried this

function ServerCmdsign(%client)
{
%FO = new FileObject();
%FO.openForWrite("add-ons/test.txt");
%FO.writeLine(%client.name);
%FO.close();
%FO.line++;
findClientByName(%client.name).centerPrint("Thanks for signing");
}

There is no syntax but whenever someone says /sign it stays on line 1 and otherwrites the last person to say /sign's name instead of going to a new line,Please help

Tom

Use openForAppened instead of OpenForWrite.

Also, use %client.getPlayerName instead of %client.name;

It's %client.getplayername()

Use openForAppened instead of OpenForWrite.

Also, use %client.getPlayerName instead of %client.name;

Didnt work at all

It's %client.getplayername()

Tried it,but it still doesnt add a new line everytime someone says the command