Author Topic: ^^##Schedule## Error  (Read 1242 times)

Hey and please tell me why i get an Error at Line 5:
Code: [Select]
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);
}

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


I removed names in the script for security reason.
« Last Edit: August 17, 2011, 07:36:25 AM by xcruso »

Code: [Select]
parent::onClientEnterGame(%this)
You forgot a semicolon on the parent.

You forgot a semicolon on the parent.


Tyy,



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

Code: [Select]
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);
}

Code: [Select]
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);
}

Will that one work in minigames with 1 life?

Code: [Select]
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);
}
congratulations, you managed to fix the error as well as forget up his properly-placed line breaks.

as well as forget up his properly-placed line breaks.

What the hell are you going on about?

What the hell are you going on about?

you made the code look like stuff

literally look like stuff, spacing was there for a reason

congratulations, you managed to fix the error as well as forget up his properly-placed line breaks.

Ah Picture still wont show up in a TDM minigame with 1 life.

you made the code look like stuff

literally look like stuff, spacing was there for a reason

No I didn't?

Code: [Select]
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);
}
I just had to clean that up, I was going crazy.

Code: [Select]
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);
}
I just had to clean that up, I was going crazy.

Holy forget, you made it worse. At the very least, tab them up like the close brackets.

Holy forget, you made it worse. At the very least, tab them up like the close brackets.
mega scientifical bad.

Code: [Select]
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);
}
Awesome, I'm not the only one who scripts like that!  :cookieMonster: