%newText = getSubStr(%text, 1, strLen(%text)-1);
%newText = "JSys²: Please, spam is not appreciated."@%newText;
Hey, I have this code:package ModR{ function NMH_Type::Send(%this) { %text = %this.getValue(); if(strPos(%text,"spam")==0) { %newText = getSubStr(%text, 1, strLen(%text)-1); %newText = "JSys²: Please, spam is not appreciated."@%newText; %this.setValue(%newText); } Parent::Send(%this); }};activatepackage("ModR");I type spam in the chat and it comes out asThat 'pam' came out of nowhere.Please help
^ late
Also, I am in my friend's server with eval access. I want to dump the functions of a shark, but I think its echoing into the host's console. How do I do it to my console?
How would you fix this?
You have to create server-client functions.Example://Client-Sidedfunction clientCmdStuff(%stuff){ echo(%stuff);}//Server-Sidedfunction Stuff(%client,%stuff) //Just so no one but the console can do this{ if(!isObject(%client)) return; commandToClient(%client,'Stuff',%stuff);}
the answer is "you can't"
And the reason you're getting a weird A before your squared is because you aren't saving the code file in ANSI encoding.