void commandToServer (string func[, arg1,...])
Here's the problem, commandToServer doesn't return anything (aka, void), so if you have a server command like this:
function ServerCmdGetInfo(%client){
return "abc";
}
and you call it like this (client side):
%str = commandToServer('GetInfo');
%str won't be "abc".
A workaround:
Server side:
function ServerCmdGetInfo(%client){
commandToClient(%client, 'GetInfo', "abc");
}
Client side:
function ClientCmdGetInfo(%str){
$str = %str;
}