Author Topic: serverCmdMessageSent source  (Read 3135 times)

function messageAll(%cmd, %msg, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r)
{
   %count = clientGroup.getCount();
   for(%index = 0; %index < %count; %index ++)
      messageClient(clientGroup.getObject(%index), %cmd, "<font:calibri:30>" @ %msg, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r);
}


I have tried single quotes as well
Doesn't look like torque likes modification of tagged strings. I wouldn't advise it either. MessageAll is one of those functions you shouldn't be messing with.

function messageAll(%cmd, %msg, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r)
{
   %count = clientGroup.getCount();
   for(%index = 0; %index < %count; %index ++)
      messageClient(clientGroup.getObject(%index), %cmd, "<font:calibri:30>" @ %msg, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r);
}


I have tried single quotes as well
...messageall is used for alot of other stuff so don't do it like that

Doesn't look like torque likes modification of tagged strings. I wouldn't advise it either. MessageAll is one of those functions you shouldn't be messing with.
msg isn't a tagged string
However, to modify a tagged string:

%str = addtaggedstring("blah" @ detag(%tag));

msg isn't a tagged string
Pretty sure that depends on what's passed into the function. It can be a tagged string, with the other arguments being the substitutions.

msg isn't a tagged string

... suuuuree

   // Inform all the other clients of the new guy
   messageAllExcept(%client, -1, 'MsgClientJoin', '\c1%1 joined the game.',
      %client.name,
      %client,
      %client.sendGuid,
      %client.score,
      %client.isAiControlled(),
      %client.isAdmin,
      %client.isSuperAdmin);