Blockland Forums > Suggestions & Requests
serverCmdMessageSent source
<< < (3/4) > >>
Electrk.:

--- Quote from: Greek2me on January 26, 2014, 11:56:21 PM ---
--- Code: ---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, %msg, %a, %b, %c, %d, %e, %f, %g, %h, %i, %j, %k, %l, %m, %n, %o, %p, %q, %r);
}
--- End code ---

--- End quote ---

but you can't edit the message at all without screwing everything up
Greek2me:

--- Quote from: Electrk. on January 27, 2014, 11:42:26 PM ---but you can't edit the message at all without screwing everything up

--- End quote ---

Huh? What are you trying to do? You asked for the source code; that's about as close as it gets.
Electrk.:

--- Quote from: Greek2me on January 28, 2014, 01:12:08 AM ---Huh? What are you trying to do? You asked for the source code; that's about as close as it gets.

--- End quote ---

For things that use %1 %2 etc. it screws it up and just shows a number
Greek2me:
Post the code of what you're trying to do.
Electrk.:
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
Navigation
Message Index
Next page
Previous page

Go to full version