You can't put a call function inside a package.
package cake
{
LoadSomething(); //Functions like this cannot be in the package
function cakes() //This is a registering function
{
messageAll('',"Cakes!");
}
};
activatepackage("cake");
cakes(); //This function works fine since it is out of the package
It gives it errors for some odd reason, and putting a capital on Package makes an error as well, not sure why.