Blockland Forums > Suggestions & Requests
serverCmdMessageSent source
-Jetz-:
--- Quote from: Electrk. on January 28, 2014, 04:43:27 PM ---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
--- End quote ---
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.
Zeblote:
--- Quote from: Electrk. on January 28, 2014, 04:43:27 PM ---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
--- End quote ---
...messageall is used for alot of other stuff so don't do it like that
--- Quote from: -Jetz- on January 28, 2014, 05:23:43 PM ---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.
--- End quote ---
msg isn't a tagged string
However, to modify a tagged string:
%str = addtaggedstring("blah" @ detag(%tag));
-Jetz-:
--- Quote from: Zeblote on January 28, 2014, 05:25:43 PM ---msg isn't a tagged string
--- End quote ---
Pretty sure that depends on what's passed into the function. It can be a tagged string, with the other arguments being the substitutions.
Port:
--- Quote from: Zeblote on January 28, 2014, 05:25:43 PM ---msg isn't a tagged string
--- End quote ---
... 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);