Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Caust

Pages: [1]
1
Modification Help / Re: Toggling A Mod
« on: September 04, 2011, 06:54:31 PM »
You forgot the opening brace for the package.
Whenever there is a syntax error, look backwards in the code and you may find it there.

2
Modification Help / Re: Not sure why this script isn't working.
« on: June 10, 2011, 04:16:05 PM »
Code: [Select]
function test(%client) {

commandToClient(%client,'centerPrint',"Is the message still up? ", -1);
}

package print {

function gameConnection::onClientEnterGame(%client) {

parent::onClientEnterGame(%client);
test(%client);
}
};
activatePackage(print);

The parent needs to be called first so the player spawns first, and the min/max duration of a centerPrint is from -1 to 999, I believe.

3
Modification Help / Re: How does this cause a Syntax Error?
« on: June 08, 2011, 09:56:03 PM »
Code: [Select]
Parent::spawnPlayer(%client)
This needs a semi-colon.

Pages: [1]