Author Topic: Why does every code i write not work on BL  (Read 2361 times)

Yes... did you not think I wanted it to look like that?

I did think of that. That is why you are an idiot.

You got rid of the syntax and the engrish. Then you added a bunch of random stuff that dragged on for too long and wasn't exactly interesting or coherent. Great job at making it not funny.

Heres a tip: Never "fix" anything else again.


Well, I don't want to post any of my full scripts but I will post this addon I put at the end of a cash script so admins could get cash: It did not work:

//admin cash
function ServerCmdblocks(%client, %amount)
if (%client.isSuperAdmin==1)
%client.Blockmoney+=%amount;
    messageClient (You have got admin cash)
else
messageClient (You are not an admin)

I just don't see what is wrong with it.

Even code like: function ServerCmd(%client, %word)
if (%word=joe)
        messageClient (You are joe)

Even simple stuff like that does not work.

...

You need brackets...


... Everywhere...

//admin cash
function ServerCmdblocks(%client, %amount){
if (%client.isSuperAdmin==1){
%client.Blockmoney+=%amount;
    messageClient (%client,'',"You have got admin cash");
}
else
{
messageClient (%client,'',"You are not an admin");
}
}

function ServerCmdneeds_a_name(%client, %word){
if (%word$="joe"){
        messageClient (%client,'',"You are joe");
}
}

Like that I believe.

And how does that make my code work? cus I think I have them on most codes.

Well I tested it and it seems to be working on the admin cash (but it just says you have go then cash but when you check the cash its not there) any way I will try it out on a few other things (And try to fix that bug)

I tested it on a scrip entirely made by me (well actually it was a practise script made of other scripts) and nothing, it just wont work this is it:

function ServerCmdaddname(%client,%Name)
{
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    new aiplayer(%name) { datablock=playernojet; position=%client.player.getposition(); };
    MessageClient(%client,0,"\c3You have added the name\c6" @ " " @ %Name);
    %client.Bot=%Name;
    %Name.setshapename(%Name);
  }
  else
  {
    messageclient(%client,"Sorry, You are not a admin.");
}
{
//O_O
}
function ServerCmdremovename(%client,%Name)
{
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    %Name.kill();
  }
  else
  {
    messageclient(%client,"You have no names to remove.");
  }
}
//O_O
}
function serverCmdsay(%client,%Name,%Msg)
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    messageAll(%Name,"\c3" @ %Name @ "\c6 " @ %Msg);
  }
  else
  {
    messageclient(%client,0,"HAHAHA you cant add names.");
  }
}
 
Some of it if from the bot mod, I wanted admins to be able to hide there name on chat so I made this.

I tested it on a scrip entirely made by me (well actually it was a practise script made of other scripts) and nothing, it just wont work this is it:

function ServerCmdaddname(%client,%Name)
{
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    new aiplayer(%name) { datablock=playernojet; position=%client.player.getposition(); };
    MessageClient(%client,0,"\c3You have added the name\c6" @ " " @ %Name);
    %client.Bot=%Name;
    %Name.setshapename(%Name);
  }
  else
  {
    messageclient(%client,"Sorry, You are not a admin.");

}
{
//O_O

}
function ServerCmdremovename(%client,%Name)
{
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    %Name.kill();
  }
  else
  {
    messageclient(%client,"You have no names to remove.");
  }
}
//O_O

}
function serverCmdsay(%client,%Name,%Msg)
{
  if (%client.isAdmin==1 || client.isSuperAdmin==1)
  {
    messageAll(%Name,"\c3" @ %Name @ "\c6 " @ %Msg);
  }
  else
  {
    messageclient(%client,0,"HAHAHA you cant add names.");
  }
}
 
Some of it if from the bot mod, I wanted admins to be able to hide there name on chat so I made this.
Try removing the bold parts.

I can understand removing the brackets, but the faces that are behind the double-slashes he could leave there if he really wanted to.

if (%client.isAdmin==1 || %client.isSuperAdmin==1)
need that in both of them. Also what that other guy said.

Well, first of all I am astonished that a small thing like that was the the prob, secondly I am happy cus I know how to make all the scripts work. And last but not least Thank you for all your help, and for giving the friendliest replies I have ever got on the forum.