client.cs:
if(!isObject(BLE_UpperCenterPrint)) { exec("./gui/BLE_UpperCenterPrint.gui"); }
//%duration needs to be in msec, e.g. 1000 = 1 second
function BLE_SetUpperCenterPrint(%msg,%duration)
{
echo("received.");
BLE_UpperCenterPrint_Text.setText("<just:center>" @ %msg);
if(%duration)
{
schedule(%duration,0,BLE_SetUpperCenterPrint,"",0);
}
}
server.cs:
function BLE_UpperCenterPrint(%client,%msg,%duration)
{
if(isObject(%client))
{
commandToClient(%client,'BLE_SetUpperCenterPrint',%msg,%duration);
echo("should've worked.");
}
}
"should've worked" is echoed, however "received" isn't. I know the client-sided command works.
Is there some syntax issue I'm oblivious to, or what.
(using BLE_UpperCenterPrint(findclientbyName("theb"),"test",5000);)