Blockland Forums > Modification Help
Can someone fix this mute/unmute event server.cs?
jes00:
--- Quote from: ScratchTehEPICSpaceDude on March 14, 2012, 01:00:21 PM ---So, I just replace %victim.BL_ID with %this.BL_ID, correct?
--- End quote ---
Only in the un mute part.
Wordy:
--- Quote from: FFSO on March 13, 2012, 09:51:27 PM ---It will work, you suck at coding if you dont understand it.
--- End quote ---
--- Quote from: phflack on March 13, 2012, 10:09:04 PM ---it won't work, i think you suck at coding for saying other people suck at coding for pointing out your errorsit should be
--- End quote ---
Oh hell naaaaaaw.
Lugnut:
--- Quote from: Destiny/Zack0Wack0 on March 14, 2012, 05:23:36 AM ---You just made the biggest richard out of yourself.No it shouldn't, like already mentioned %victim doesn't exist. Not to mention there is absolutely no reason why you should be setting the bl_id property and it won't even work, it's protected by the engine.
--- End quote ---
oops
forgot that that defined bl_id on %victim, not %victim.bl_id, those are arrays
Axolotl:
--- Code: ---function GameConnection::unMute(%this)
{
$Mute[%this.BL_ID] = false;
MessageClient(%this, '', "\c6You are now unmuted");
}
--- End code ---
obviously replace %victim with %this
jes00:
--- Quote from: Axolotl on March 18, 2012, 07:31:39 AM ---
--- Code: ---function GameConnection::unMute(%this)
{
$Mute[%this.BL_ID] = false;
MessageClient(%this, '', "\c6You are now unmuted");
}
--- End code ---
obviously replace %victim with %this
--- End quote ---
Read the entire topic, it's already been solved.