so part of my script is:
then my function looks like this:
but i get an error saying
Assets/LoginScript.js(30,19): BCE0026: 'void' cannot be used in a boolean context.
is there a way to set the value of CheckPassword to false before its called? or is there a different way to fix this problem
asked Jul 21 '10 at 07:04 AM
No, that would mean your application would have to hang until the RPC returned a value (which can't happen).
The usual way to do this is like this:
Alternatively, you could have a single function for the return which takes a bool - either way, it needs to be one message to server, and one message back
answered Jul 21 '10 at 07:51 AM