Author Topic: Making my first script, trying to make a messaging system. But its not working.  (Read 1943 times)

« Last Edit: June 28, 2010, 10:30:33 PM by tyler0 »

messageAll('',"%MessageOne");
%MessageOne doesn't exist, but $Messages::One is available.

messageAll('',"%MessageOne");
%MessageOne doesn't exist, but $Messages::One is available.

umm like that? ( i modified it )

and added more messages

umm like that? ( i modified it )

and added more messages
Now everyone will be message "$Messages::One", literally.

Now everyone will be message "$Messages::One", literally.

What??? why?

You put it in quotes, silly.
"$bob" != $bob

You put it in quotes, silly.
"$bob" != $bob
lol ok so any ideas on why it wont show up on the server control?

updated the top
« Last Edit: June 28, 2010, 02:09:03 AM by tyler0 »

lol ok so any ideas on why it wont show up on the server control?
You didn't copy the code correctly


No you didn't. Go back and look at the code where you copied it from and compare it to what you have.

No you didn't. Go back and look at the code where you copied it from and compare it to what you have.

I have the same thing. Nothing is different. This is my exact server.cs file. Do you know why its not showing up?
« Last Edit: June 28, 2010, 04:43:38 PM by tyler0 »

I have the same thing. Nothing is different. This is my exact server.cs file. Do you know why its not showing up?
I meant this.
Code: [Select]
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
   if(!$RTB::RTBR_ServerControl_Hook)
      exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
   RTB_registerPref("Duplicator Timeout","Duplicator","Duplicator::Timeout","int 0 60","Tool_Duplicator",40,0,0);
}
else
{
   $Duplicator::Timeout = 40;
}
You tried to add brackets under that second if statement but didn't put them in the right place. Your prefs would only be registered if $RTB::RTBR_ServerControl_Hook was 0.

Ok i think i got wat you said look at the top and see if thats what you ment.