Author Topic: This event will not show up...  (Read 610 times)

What am I doing wrong?

registerOutputEvent(GameConnection, "serverCmdClearAllBricks", 0, 1);
parent, function, variables, attach client

registerOutputEvent(GameConnection, "serverCmdClearAllBricks", 0, 1);
parent, function, variables, attach client

Still doesn't work...

Is it supposed to be "serverCmdClearAllBricks"?



Oh god. Never mind. What the hell am I doing wrong?
« Last Edit: June 08, 2012, 10:10:50 PM by ScratchTehEPICSpaceDude »

Never mind. What am I doing wrong?
Try this:
Code: [Select]
function GameConnection::ClearAllBricks(%client)
{
if ( %client.getRawIP() $= "local" || %client.getBLID() == getNumKeyID() )
{
    serverCmdClearAllBricks( %client );
}
}

registerOutputEvent(GameConnection, "ClearAllBricks", 0, 1);

Try this:
Code: [Select]
function GameConnection::ClearAllBricks(%client)
{
if ( %client.getRawIP() $= "local" || %client.getBLID() == getNumKeyID() )
{
    serverCmdClearAllBricks( %client );
}
}

registerOutputEvent(GameConnection, "ClearAllBricks", 0, 1);

The event still doesn't show up.

The event still doesn't show up.
Show up where? in the add on list or in game?


Still not working. Please help.

are you resetting the server/map or just execing it?
lists won't update until you reset map, server, or blockland

are you resetting the server/map or just execing it?
lists won't update until you reset map, server, or blockland

I resetted 5 times.