| Blockland Forums > Modification Help |
| Can someone fix this mute/unmute event server.cs? |
| << < (2/4) > >> |
| otto-san:
--- 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 --- why don't you go try it yourself? %victim is undefined, any attempt to access data from it will not work because it does not exist. |
| phflack:
--- 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 --- it won't work, i think you suck at coding for saying other people suck at coding for pointing out your errors --- Quote from: FFSO on March 13, 2012, 09:27:06 PM --- --- Code: ---function GameConnection::unMute(%this) { %this.BL_ID = %victim.BL_ID; $Mute[%victim.BL_ID] = false; MessageClient(%victim, '', "\c6You are now unmuted"); } --- End code --- --- End quote --- it should be --- Code: ---function GameConnection::unMute(%this) { $Mute[%this.BL_ID] = false; MessageClient(%this, '', "\c6You are now unmuted"); } --- End code --- or --- Code: ---function GameConnection::unMute(%this, %victum) { $Mute[%victim.BL_ID] = false; MessageClient(%victim, '', "\c6You are now unmuted"); } --- End code --- |
| Lugnut:
--- 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 errors --- End quote --- that also, you're backwards FFSO %this.BL_ID = %victim.BL_ID; should be %victim.BL_ID = %this.BL_ID; |
| Destiny/Zack0Wack0:
--- 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 --- You just made the biggest richard out of yourself. --- Quote from: Lugnut1206 on March 14, 2012, 03:34:00 AM ---that also, you're backwards FFSO %this.BL_ID = %victim.BL_ID; should be %victim.BL_ID = %this.BL_ID; --- End quote --- 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. |
| ScratchTehEPICSpaceDude:
So, I just replace %victim.BL_ID with %this.BL_ID, correct? |
| Navigation |
| Message Index |
| Next page |
| Previous page |