Blockland Forums > Modification Help

My scripting problems: 0

Pages: << < (6/14) > >>

Sammygood:

List Re-Made.

Space Guy:


--- Quote from: lordician on June 02, 2010, 06:29:41 AM ---
--- Code: ---   %toggletest = 0;

--- End code ---

--- End quote ---
The "toggletest" variable should be a global ($toggletest) not a local (%toggletest) otherwise it's reset to "" counted as 0 whenever the function is called and it'll always turn on, never off.

Amade:

messageAll has two arguments, the message type and the message text. For the message type you can just use '' for a chat message.

messageAll('', "Hello");

Sammygood:

I see, thanks.

Orthone:


--- Quote from: Sammygood on June 01, 2010, 12:19:50 PM ---//exec("config/Test.cs");

function servercmdcount(%mins)

{
%mins * 1000;

while (getsimtime()<getsimtime() + %mins)

{
%mins - 1000;
centerprintAll(%mins);
}

if (getsimtime()>=getsimtime() + %mins)

{
centerprintAll(" ");
}

--- End quote ---
Also, %mins would be the player who said /count, not sure how useful that would be.

Pages: << < (6/14) > >>

Go to full version