Need Help With My /power Command
This seems to be the only thing keeping me from releasing Betatron of phantom construction
I hope someone can identify a problem in this code
function ccpower(%sender,%args) {
%power=getwords(%args,0);
if(%power > 250 && !%sender.isadmin)
messageclient(%sender, 'MsgClient', "\c2your not admin so your power freq cannot exceed 250.");
else if(%power < 0)
messageclient(%sender, 'MsgClient', "\c2 ???...NOOB!!! There is no such thing as a Negative Frequency.");
else
%sender.powerFreq = %power;
messageclient(%sender, 'MsgClient', "\c2Power Frequency set to "@%power@".");
}
Thanks -Phantom
I hope someone can identify a problem in this code
function ccpower(%sender,%args) {
%power=getwords(%args,0);
if(%power > 250 && !%sender.isadmin)
messageclient(%sender, 'MsgClient', "\c2your not admin so your power freq cannot exceed 250.");
else if(%power < 0)
messageclient(%sender, 'MsgClient', "\c2 ???...NOOB!!! There is no such thing as a Negative Frequency.");
else
%sender.powerFreq = %power;
messageclient(%sender, 'MsgClient', "\c2Power Frequency set to "@%power@".");
}
Thanks -Phantom
Comments
I also might direct you to this thread if you want to shorten it a bit:
http://www.the-construct.net/forums/showthread.php?p=553