I may have found a workaround for the 2 biggest problems ATM, but thanks, this information will probably come in handy later on.
Now, I do have another problem. I've got an array with lots of information that I PV using CoC NS 2.0.
hs_cmd_que_pass = hs_cmd_que_pass + [[_shouting,player,_sign,_heard,_range,_sqd,_dir,_teams,_extra,_script]]
"hs_cmd_que_pass" call fPublicArray
This happens on my client. When I test it in singleplayer it all works good, but when I try it on a dedicated server, I run into a strange problem. In another script I have a check to prevent the script from moving on when there is nothing on the array. The check is this:
@ ((count hs_cmd_que_pass) > 0)
I know that it works, because it works when I play in singleplayer, and it works on my client in multiplayer. However, the server don't go past that point until there are 2 element in the array, not when there is only one. So I wondered if the server doesn't get the information the first time, so what I did was something like this:
I added the information in the hs_cmd_que_pass array to another array, only on the server, then I PVed the second array with NS 2.0, and had a script running on my client where all the information in the second array popped up. Something like this:
? (local server) : arrayname = hs_cmd_que_pass
? (local server) : "arrayname" call fPublicArray
then in another script I had this:
#loop
hint format ["%1",arrayname]
~3
goto "loop"
Note that all this is being written by memory, so any typos wasn't there. It all worked the way it was supposed to, because all the information that was passed on to my client from the server in the new array was there. I also used tried getting the server to extract the information from the array, but it didn't get any of it. Somehow the server is able to pass on the information in another array, but at the same time it's not able to notice that the array contains anything :-\ So basically, if the server refuses to notice the information in the array, the whole idea goes to hell, and I have to figure out another system where I probably will end up having to use only the "normal" PV command. But if anyone got any ideas on how to fix this, then I'd be happy