|
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
(comments are locked)
|
|
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 thank you i have now changed my script to work :)
Jul 21 '10 at 09:34 AM
Adam 3
(comments are locked)
|
