Blockland Forums > Modification Help

Nothing happens when exec. Add-on

Pages: (1/2) > >>

Korabar:

Well, not much to say, really. I haven't even attempted scripting in 4 months.

So, I decided to do the most simple thing I could think of, a script that bounces yourself.

When I execute it in the console, I get no syntax error, but nothing happens.
My script is just a shot in the dark, so could anyone tell me what's wrong with it?


--- Code: ---function Servercmdbounce(%client)
{
%Client.Player.AddVelocity(0, 0, 25);
}

--- End code ---

I first tried it with the / command, but It didn't work.

I executed it by typing in the console-


--- Code: ---exec("add-ons/Script_Test/test.cs");
--- End code ---


otto-san:

is serverCmd case sensitive?

Korabar:


--- Quote from: otto-san on January 15, 2011, 11:02:48 PM ---is serverCmd case sensitive?

--- End quote ---

I tried doing it the way you did, but it still won't work.

Although a new thing came up, it said the function AddVelocity doesn't exist.

otto-san:


--- Quote from: Korabar on January 15, 2011, 11:10:35 PM ---I tried doing it the way you did, but it still won't work.

Although a new thing came up, it said the function AddVelocity doesn't exist.

--- End quote ---
that's odd.

Headcrab Zombie:


--- Code: ---function Servercmdbounce(%client)
{
%Client.Player.AddVelocity("0 0 25");
}
--- End code ---


Pages: (1/2) > >>

Go to full version