Author Topic: SOLVED!  (Read 1735 times)

« Last Edit: February 20, 2009, 12:00:37 AM by Choneis »

Tom

Take out the Package part, it shouldn't be needed for that, and you might not be closing it a }; at the end.

packages are only if your wanting to change a function already pre-defined. the package bit is causing it to syntax because you forgot a };. Take out:
Code: [Select]
package mrpg{
or do vv ever way will fix it.
« Last Edit: February 06, 2009, 09:14:24 AM by Destiny/Zack0Wack0 »

You need to add this to the bottom of the file:
Code: [Select]
}
};
activatePackage(mrpg);


Tried every suggestion, still not working.

I hate this more then you do.

?

Code: [Select]
function serverCmdCake(%client)
{
messageClient(%client, '', 'CakeForChu');
}

Describe: This creates the Slash Command, In this case /cake.
Code: [Select]
function serverCmdCake(%client)
{

}

Describe: Messages the player saying CakeForChu.
Code: [Select]
messageClient(%client, '', 'CakeForChu');
« Last Edit: February 07, 2009, 06:12:49 PM by Kunit »

Code: [Select]
function serverCmdMRPGAdminTaxes(%client){
if(%client.isSuperAdmin || %client.isAdmin){
messageclient(%client,"","\c6The formula for taxes is (a/2 + 1 + b + 1 + c * c + E * E * E)/2");
messageclient(%client,"","\c6 a being number of 16 x 16 lots b 16 x 32, to 64 x 64.");
}
}
};
activatePackage(mrpg);

Tom

Kunit and Laremere, Learn2Indent

I'm not gonna indent 4 lines of code.

Tom

You shouldn't even have to think about adding it, you should just know to add it after you type the {.

It's natural for me to indent.

I'm not gonna indent 4 lines of code.
You don't indent 50 either. I know from helping you. :3

Kunit and Laremere, Learn2Indent
I indent all the code I write, but I didn't want to take the time to go to an external source to copy a tab to put in the code.

Tom

Yeah, it does kinda stuck that you can't indent on the forums.

It uses alot of space, but I always make my scripts easy readable.


Attempting to use ALT+009 acts as if you've actually pressed TAB and switches from the post window. Oops.