Author Topic: /command  (Read 1896 times)

Code: [Select]
//cmdtest.cs

function servercmdtest
{
echo("worked");
}

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

the file needs to be named server.cs

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

the file needs to be named server.cs

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

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

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

..why would you do that

this is what should be in a file called server.cs
Code: [Select]
function servercmdtest()
{
echo("worked");
}

add a description.txt and put both files in the folder, enable the add-on and type /test
« Last Edit: July 21, 2010, 01:08:04 AM by SpreadsPlague »

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

oh god I need to sleep


function servercmdtest() <---- add those brackets and it will work

oh god I need to sleep


function servercmdtest() <---- add those brackets and it will work

Dammit you made me host that screenshot of my folder for no reason?

:p thanks much though, i thought it looked a little nekkid around there

Ill see what that does


Works Finally XD