Author Topic: Arguments for serverCmdCreateMinigame(); and serverCmdEndMinigame();?  (Read 1360 times)

I need to know the arguments so I can package them to set the variable $Minigame::Isonrightnow to 1 for create and 0 for end.

Anyone know them?

You can easily and quickly figure these things out yourself.

1. trace(1); in console.
2. Call the commands normally
3. trace(0);
4. Find the function calls, or close blockland, open console.log, and ctrl f search "serverCmdCreateMinigame/EndMinigame"


For something simple like this, it's not absolutely necessary to know what each arguments represents, so you can just name them %a,%b,%c, etc, with the same number of arguments as listed by trace

First of all, I can't use %a,%b,%c etc because I need to know EXACTLY what they are, or the script will be poot, second of all, I know how to use trace, the problem is, i'm on my other computer.

%a will be client since it's the first variable.

First of all, I can't use %a,%b,%c etc because I need to know EXACTLY what they are, or the script will be poot, second of all, I know how to use trace, the problem is, i'm on my other computer.
Actually you can just use %a... %z and it won't break anything.

serverCmdCreateMinigame(%client, %name, %color, %bool); - I have no idea what the last argument is
serverCmdEndMinigame(%client);

Actually you can just use %a... %z and it won't break anything.

serverCmdCreateMinigame(%client, %name, %color, %bool); - I have no idea what the last argument is
serverCmdEndMinigame(%client);

First of all, I can't use %a,%b,%c etc because I need to know EXACTLY what they are, or the script will be poot, second of all, I know how to use trace, the problem is, i'm on my other computer.

Just sayin'. Thanks, anyway.

Just sayin'. Thanks, anyway.
What do you mean just saying? It's entirely false. However, if you need to use them in the script, that's another story.

he needed to know what exactly each argument will have in it

What do you mean just saying? It's entirely false. However, if you need to use them in the script, that's another story.
Why else would he be packaging them?

Why else would he be packaging them?
to set the variable $Minigame::Isonrightnow to 1 for create and 0 for end.



he needed to know what exactly each argument will have in it
Sure, knowing what the arguments mean matters, but what mp said was that the names matter

I'd recommend using MinigameSO::onAdd(%this) and MinigameSO::onRemove(%this) instead of serverCmds.

I'd recommend using MinigameSO::onAdd(%this) and MinigameSO::onRemove(%this) instead of serverCmds.

AH! Perfect. Thanks, Greek.

No problem. It actually might be better to use MinigameSO::endGame(%this) instead of ::onRemove, but it's your call, it shouldn't matter much.

No problem. It actually might be better to use MinigameSO::endGame(%this) instead of ::onRemove, but it's your call, it shouldn't matter much.

It's a client script, so it would need to be onRemove, endGame applies to the minigame, not the client by itself. Still, it might be useful if I make a server version.

It's a client script, so it would need to be onRemove, endGame applies to the minigame, not the client by itself. Still, it might be useful if I make a server version.
I'm actually fairly certain you can't do something like this client-side.