Packages might only be able to contain functions. Put them before/after the package.
There should be a line with a { after the line with function serverCmdResizeMe(%client,%ResizerX,%ResizerY,%ResizerZ)
You cannot have more than one else.
You cannot conditionally define functions, except by conditionally execing a file, or possibly conditionally activating a package.
Your test for FFC was wrong, it would cause an error if FFC was NOT there.
package RP_Enhancements
{
function serverCmdResizeMe(%client,%ResizerX,%ResizerY,%ResizerZ)
{
if($RPE::ResizeMe == 1)
{
%client.player.setPlayerScale(%ResizerX SPC %ResizerY SPC %ResizerZ)
echo(%client SPC " used the resizeme command to resize to" %ResizerX SPC "," SPC %ResizerY SPC "," SPC "," %ResizerZ "!");
}
else
{
messageClient(%client,''."ResizeMe is disabled!"
}
}
};
if(!isFile("Add-Ons/Script_FFC/server.cs"))
{
activatepackage(RP_Enhancements);
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
RTB_registerPref("Resize Me", "RP Enhancements", "RPE::ResizeMe", "int 0 1", "Script_RPE", 1, 0, 0);
}
else
{
$RPE::ResizeMe = 1;
}
}
else
{
error("RP_Enhancements Conflict: Please remove Fooly Fun Commands for this to work!");
}
Consider checking if FFC was disabled if it existed, not just if it existed. Also, this code looks abusable and doesn't seem to add anything to the game, so I would not reccomend releasing it publicly.