| Blockland Forums > Modification Help |
| Arguments for serverCmdCreateMinigame(); and serverCmdEndMinigame();? |
| (1/4) > >> |
| mp7964:
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? |
| Headcrab Zombie:
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 |
| mp7964:
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. |
| otto-san:
%a will be client since it's the first variable. |
| Amade:
--- Quote from: mp7964 on October 02, 2011, 08:22:40 PM ---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. --- End quote --- 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); |
| Navigation |
| Message Index |
| Next page |