I am making a save command where you type /Save SaveNameHere. I have the following code, but it doesn't work.
(This is a client-sided mod)
package Saver
{
function clientcmdSave(%client, %name)
{
saveBricks("saves/saveCommand/" @ %name @ ".bls", 1, 1);
messageClient(%client,'',"Saved" SPC $server::Brickcount SPC "brick(s) to" SPC %name @ ".bls.");
}
};
function gameconection::onClientSpawn(%client)
{
activatePackage(Saver);
parent::onClientSpawn(%client);
}
Please help.
Content copyright © 2010 MJ Studios LLC., and is protected from copying.