Blockland Forums > Modification Help

Not sure why this script isn't working.

Pages: << < (2/3) > >>

Kalphiter:


--- Quote from: tyler0 on June 09, 2011, 09:19:05 PM ---what? It's not scheduling it? Just say that it will disappear in -1 milisecs. Right?

--- End quote ---
It schedules for something to happen in the past, so that something will never happen.
It won't disappear.

tyler0:


--- Quote from: Kalphiter on June 09, 2011, 09:21:08 PM ---It schedules for something to happen in the past, so that something will never happen.
It won't disappear.

--- End quote ---


--- Code: ---package print
{

function loop(%client) {

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

function gameConnection::onClientEnterGame(%client) {

loop(%client);
Parent::onClientEnterGame(%client);
}
};
activatePackage(print);
--- End code ---

Still :/ nothing is showing up

Red_Guy:

try some echo() statements.
and mabye trace ?


also - centerPrint and bottomprint with a -1 means to leave the text up forever.

Nexus:

is oncliententergame called when the player spawns or when the player first joins the server? bottomprint and centerprint do not work until a player is spawned.

otto-san:


--- Quote from: Nexus on June 10, 2011, 02:50:28 PM ---is oncliententergame called when the player spawns or when the player first joins the server? bottomprint and centerprint do not work until a player is spawned.

--- End quote ---
Spawns.

Pages: << < (2/3) > >>

Go to full version