Author Topic: Yes/No Box  (Read 2980 times)

clientcmdMessageBoxOKCancel does not exist. The only one is clientcmdMessageBoxOK.

The generic clientside functions messageBoxYesNo(); and messageBoxOKCancel(); exist, but they cannot be called without installing an Add-On, which the topic starter does not want. They weren't included because the general function allows any piece of code to be executed - if made available to servers people could make unavoidable (generally) "Message Box OK: Crash / Delete All Files?" messages to destroy peoples' games.

Yeah, I'm at work and am unable to check the specific GUI object names and function names, but the current release version of my JVS stuff uses something similar to prompt the user before overwriting saves.

They weren't included because the general function allows any piece of code to be executed

They're all just as dangerous - there's no reason to keep the other functions hidden from the server.

What about a simple /yes or /no question? That would get around the problem of "answer or we spam you on every message" and "give away my answer to everybody" that would result from the previously stated code.

"give away my answer to everybody"
My code does not do that. Notice the return statement?

They weren't included because the general function allows any piece of code to be executed - if made available to servers people could make unavoidable (generally) "Message Box OK: Crash / Delete All Files?" messages to destroy peoples' games.
This made me lol :D

Oops, my mistake, but it DOES make you unable to talk at all until you answer. I would personally ask them less than 5 times before giving up.

A good programmer knows how to construct code that falls within a given set of parameters.
Oh yes.