Blockland Forums > Modification Help

/command

Pages: << < (4/5) > >>

Obibital:


--- Code: ---//cmdtest.cs

function servercmdtest
{
echo("worked");
}

--- End code ---

That seems a little bear, its gotta be missing something, especially since it is giving a bunch of syntax errors and it just reads me the code

SpreadsPlague:

the file needs to be named server.cs

or you need to execute your cmdtest.cs in your server.cs (which is dumb)

Obibital:


--- Quote from: SpreadsPlague on July 21, 2010, 01:00:13 AM ---the file needs to be named server.cs

or you need to execute your cmdtest.cs in your server.cs (which is dumb)

--- End quote ---

File is named server.cs, and it has a description

Ill try to have the server.cs exec("add-ons/server_cmdtest/cdmtest.cs"); or whatevers

SpreadsPlague:


--- Quote from: Obibital on July 21, 2010, 01:02:49 AM ---File is named server.cs, and it has a description

Ill try to have the server.cs exec("add-ons/server_cmdtest/cdmtest.cs"); or whatevers

--- End quote ---

..why would you do that

this is what should be in a file called server.cs

--- Code: ---function servercmdtest()
{
echo("worked");
}
--- End code ---

add a description.txt and put both files in the folder, enable the add-on and type /test

Obibital:

Lawl, thought thats what u meant, i know what you mean now though


I get this when i execute this

add-ons/server_cmdtest/server.cs Line: 4 - Syntax error.
>>> Some error context, with ## on sides of error halt:
/cmdtest.cs

function servercmdtest
{##
##
echo("worked");
}
>>>Error report complete.


Then it does it a second time

Pages: << < (4/5) > >>

Go to full version