servercmd's dont need to be in a function do they?
sorry, yes they do, it's 10 AM here and I haven't even slept yet
I'm sorry for the confusing advice, hopefully someone more conscious will come soon lol
sorry, your command should actually look like this
function servercmdtest
{
echo("worked");
}
Well, i knew they were items that had %'s in front of them, like %client, or %obj, and whatnot
But what are they for? what do they do?
why do we need them? thats what i wanted to know
%client is always your client,
%obj is an object,
here's a terrible example using arguments
function servercmdcompare(%a, %b)
{
if(%a == %b)
return;
else
commandtoserver('Self Delete');
}
/compare X Y would then compare X to Y
if X == Y then the script does nothing and everyone is happy
however if X != Y then you die
arguments can be used in lots of ways but unfortunately I'm too tired to remember any
sorry.. so here's a helpful tip instead
= sets a variable to something
== means is equal to
%a = 1
this sets %a to 1
if(%a == 1)
this means "if %a is 1"
I hope this post helps you somehow ..