Blockland Forums > Modification Help

Client-sided bottomprint manipulation

Pages: (1/1)

Ipquarx:

Im trying to client-sided-ly manipulate clientcmdbottomprint, and its working, but it stops the bottomprint from actually appearing, and makes and error when the function is called.
Could anyone tell me what im doing wrong and how to fix it? thanks.


--- Code: ---deactivatePackage(newpackage);
package newpackage
{
function clientCmdBottomprint(%msg, %time)
{
%nmsg = strreplace(%msg, " ", " ");
for(%a=0; %a < getFieldCount(%nmsg); %a++)
{
echo("Field" SPC %a SPC getField(%nmsg, %a));
}
parent::Bottomprint(%msg, %time);
}
};
activatePackage(newpackage);
--- End code ---


otto-san:


--- Quote ---deactivatePackage(newpackage);
package newpackage
{
   function clientCmdBottomprint(%msg, %time)
   {
      %nmsg = strreplace(%msg, " ", "   ");
      for(%a=0; %a < getFieldCount(%nmsg); %a++)
      {
         echo("Field" SPC %a SPC getField(%nmsg, %a));
      }
   parent::clientCmdBottomprint(%msg, %time);
   }
};
activatePackage(newpackage);
--- End quote ---


Ipquarx:

ah.

Pages: (1/1)

Go to full version