Need Script Help

Author Topic: Need Script Help  (Read 768 times)

Well, i made a rules script, and it worked perfect, just the way i wanted it to.
Then i hit copy, then pasted it to the desktop. i later clicked 'delete' on the desktop copy, and found out i actually deleted it all because copy and cut are right next to each other.
I just thought, "no problem." and I rewrote the exact same script, and now it won't work. i've tried everything i can think of to make it work again, and it never seems to fix it.

Here's what the script looks like:

Quote

function serverCmdRules(%client){

messageClient(%client,'',"\c2 ~RULES~");
messageClient(%client,'',"\c2 1-No asking for admin. I will give out as I see fit.");
messageClient(%client,'',"\c2 2-No spamming. This means bricks, chat, etc.");
messageClient(%client,'',"\c2 3-Respect others. This means, if you are asked to stop doing something, please stop.");
messageClient(%client,'',"\c2 4-Obey the admins.");
messageClient(%client,'',"\c2 5-Respect the other players' builds. This means, don't paint them, don't duplicate them without permission, ect. If it's your build, go ahead. do whatever you want to it.");
messageClient(%client,'',"\c2 6-Try and use proper grammar. Unless you're in one of those moods where you wanna talk like this. "hai guyz. wat u bilding? me freebild on ur hawz?");
messageClient(%client,'',"\c2 7-Failure to follow these rules (except #6) will result in, in this order:  1-You will be asked to stop.  2-Kick.  3-Ban.  4-Perma-Ban");
messageClient(%client,'',"\c2 So try and follow these rules, so the server isnt annoying to be on, and so you dont get banned  :D");

}


I've color coded so it's easyer to see

Well, i REALLY need help, so if you see anything wrong, or know what i can do to fix it, please post.
« Last Edit: May 17, 2008, 03:32:03 PM by Zaie »

Well, i made a rules script, and it worked perfect, just the way i wanted it to.
Then i hit copy, then pasted it to the desktop. i later clicked 'delete' on the desktop copy, and found out i actually deleted it all because copy and cut are right next to each other.
I just thought, "no problem." and I rewrote the exact same script, and now it won't work. i've tried everything i can think of to make it work again, and it never seems to fix it.

Here's what the script looks like:

[script]
function serverCmdRules(%client){

messageClient(%client,'',"\c2 ~RULES~");
messageClient(%client,'',"\c2 1-No asking for admin. I will give out as I see fit.");
messageClient(%client,'',"\c2 2-No spamming. This means bricks, chat, etc.");
messageClient(%client,'',"\c2 3-Respect others. This means, if you are asked to stop doing something, please stop.");
messageClient(%client,'',"\c2 4-Obey the admins.");
messageClient(%client,'',"\c2 5-Respect the other players\' builds. This means, don\'t paint them, don't duplicate them without permission, ect. If it\'s your build, go ahead. do whatever you want to it.");
messageClient(%client,'',"\c2 6-Try and use proper grammar. Unless you're in one of those moods where you wanna talk like this. \"hai guyz. wat u bilding? me freebild on ur hawz?\"");
messageClient(%client,'',"\c2 7-Failure to follow these rules (except #6) will result in, in this order:  1-You will be asked to stop.  2-Kick.  3-Ban.  4-Perma-Ban");
messageClient(%client,'',"\c2 So try and follow these rules, so the server isn\'t annoying to be on, and so you don\'t get banned  :D");

}
[/script]
I've color coded so it's easyer to see

Well, i REALLY need help, so if you see anything wrong, or know what i can do to fix it, please post.
remember, for ' and " in a string you need to use \' and \" respectively.

Ok, thanks Rky. It worked.

:Locking topic: