Blockland Forums > Modification Help
Client MessageboxOK
<< < (2/4) > >>
Headcrab Zombie:
I'm pretty sure there is too but I don't know how so I didn't mention it
Greek2me:

--- Quote from: Iban on March 16, 2011, 09:28:59 PM ---
--- Code: ---commandToClient(%client, 'MessageBoxOK', %title, %message);
--- End code ---

I'm pretty sure there is a 5th argument that lets you do a callback, if they choose to press OK instead of X.

Like so:


--- Code: ---commandToClient(%client, 'MessageBoxOK', %title, %message, 'ConfirmMessage');

function serverCmdConfirmMessage(%client)
{
// Code here.
}
--- End code ---

You'd have to try it out, I can't say for certain.

--- End quote ---
Correct. The callback MUST be a serverCmd. Was just doing a bunch of experimenting with this a few weeks ago
Iban:

--- Quote from: Greek2me on March 17, 2011, 12:33:18 AM ---Correct. The callback MUST be a serverCmd. Was just doing a bunch of experimenting with this a few weeks ago

--- End quote ---
That was never the question. The question was: Does MessageBoxOK have a callback?
Destiny/Zack0Wack0:

--- Quote from: Iban on March 17, 2011, 12:37:29 AM ---That was never the question. The question was: Does MessageBoxOK have a callback?

--- End quote ---
He just answered that, though.
Greek2me:
It was kinda implied...
Navigation
Message Index
Next page
Previous page

Go to full version