Blockland Forums > Modification Help
^^##Schedule## Error
(1/5) > >>
xcruso:
Hey and please tell me why i get an Error at Line 5:

--- Code: ---package ...
{
function gameConnection::onClientEnterGame(%this)
{
parent::onClientEnterGame(%this)

schedule(2500, 0, "snip", %this);
}
};
activatepackage(...);

function snip(%this)
{
centerPrint(%this, "<bitmap:Add-Ons/Server_snip/thePicture...>", 5);
}

--- End code ---

Error in console says  ^^schedule(##2500##,0 "snip", %this);


I removed names in the script for security reason.
Fluff-is-back:

--- Quote from: xcruso on August 17, 2011, 06:28:53 AM ---
--- Code: ---parent::onClientEnterGame(%this)

--- End code ---

--- End quote ---
You forgot a semicolon on the parent.
xcruso:

--- Quote from: Fluff-is-back on August 17, 2011, 08:46:24 AM ---You forgot a semicolon on the parent.

--- End quote ---


Tyy,



Deerp Why didn't i see that.--..
MegaScientifical:

--- Code: ---package xcruso {
function GameConnection::onClientEnterGame(%this){
Parent::onClientEnterGame(%this);
%this.schedule(2500, "snip");
}
};
activatepackage(xcruso);

function GameConnection::snip(%this) {
centerPrint(%this, "<bitmap:Add-Ons/Server_snip/thePicture...>", 5);
}
--- End code ---
xcruso:

--- Quote from: MegaScientifical on August 17, 2011, 10:35:17 AM ---
--- Code: ---package xcruso {
function GameConnection::onClientEnterGame(%this){
Parent::onClientEnterGame(%this);
%this.schedule(2500, "snip");
}
};
activatepackage(xcruso);

function GameConnection::snip(%this) {
centerPrint(%this, "<bitmap:Add-Ons/Server_snip/thePicture...>", 5);
}
--- End code ---

--- End quote ---

Will that one work in minigames with 1 life?
Navigation
Message Index
Next page

Go to full version