Also, I have a command for my Rules creator button that syntaxes, I used the MacroSaver as a reference and this is the code:
function saverules()
{
%rules = rulestxt.getValue();
if(%rules $= "")
{
MessageBoxOk("Uh-Oh!","Please fill in the Rules box, or un-check the show rules box!");
return;
}
else
{
%file = new FileObject();
%file.openForWrite("Config/Client/Rules/rules.txt");
%file.writeLine(%rules);
canvas.popDialog(AziCity_RulesCreator);
clientCmdCenterPrint("<color:00FF00>Your rules have been saved successfully.",4);
}##
##
I don't know why it syntaxes, and I have a question, can you write to a file that is inside your zip file instead of in the config/client/blah directory?