Multiplayer variables
Gary Brown
04 May 2005, 16:47Okay, at the risk of seeming utterly stupid I'm stuck.
I understand the concept of defining user variables in an array.(i.e. health[userid]), but if I try to reference that with QDK it tells me that I can't use brackets ([]). So, I guess my question is, can somebody tell me the exact sytax used to add/change variables,(properties) on a player in QDK.
Sorry to seem dense, but I'm still learning.
Gary
I understand the concept of defining user variables in an array.(i.e. health[userid]), but if I try to reference that with QDK it tells me that I can't use brackets ([]). So, I guess my question is, can somebody tell me the exact sytax used to add/change variables,(properties) on a player in QDK.
Sorry to seem dense, but I'm still learning.
Gary
francisstokes
04 May 2005, 21:42Ok at the risk of me sounding stupid (as i have very little Qnet exp) i think you make variables that are used by everyone Local variables.
Don't hold me to that but im pretty sure though.
Don't hold me to that but im pretty sure though.
Alex
04 May 2005, 22:37You're right that QDK brings up a warning when you try to set a variable with an array index. However, you can dismiss this just by clicking OK. It's because the error checking code isn't as clever as it should be! I will put this on my list of things to do for the next version.
Gary Brown
05 May 2005, 01:20Okay. Cool. I'm sorry. I assumed that ignoring the warning would be a bad thing. lol. Okay. Thank you very much.
Gary
Gary