Blockland Forums > Modification Help

Help with Syntax Error in my Delete function

Pages: << < (2/2)

otto-san:


--- Quote from: Headcrab Zombie on July 19, 2011, 04:08:04 AM ---Except without the v at the end


--- End quote ---
HEHEHE

I pressed V.

I didn't mean to.  :cookieMonster:

Headcrab Zombie:

I just tested it myself, FCBN is not a default function, you have some add-on defining for you.


--- Quote from: adam savage on July 19, 2011, 08:51:52 AM ---FCBN("Marti").ClanSuffix = "Cube";

--- End quote ---
fixed


--- Quote from: Katadeus on July 19, 2011, 11:52:10 AM ---function servercmdDelete(%client, %name)
{
          if(%client.isAdmin)
          {
                    %name = findclientbyname(%name);
                    %name.player.delete();
          }
}

--- End quote ---
fixed

phflack:


--- Quote from: Headcrab Zombie on July 19, 2011, 12:45:05 PM ---I just tested it myself, FCBN is not a default function, you have some add-on defining for you.
fixed
fixed

--- End quote ---
wouldn't it just be easier to do

--- Code: ---function servercmdDelete(%client, %name)
{
          if(%client.isAdmin)
          {
                    findclientbyname(%name).player.delete();
          }
}

--- End code ---


adam savage:

Thank you everyone! Its works now, I will be realising this in an add-ons (With other functions, of course).

Pages: << < (2/2)

Go to full version