Blockland Forums > Modification Help

What does this error message actually mean?

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

wizzlemanizzle:

Ok, not necessarily fixed, because I stilldont get what the problem was, but I did it the overcomplicated way, and I got dump(); at least working-


--- Code: ---==>function ServerCmdasdf(%client) { echo(%client);}
5998
==>function test(%client) { %client.dump(); }
==>test(5998);
//craploads of dumped info
--- End code ---
so I did find a way around the situation, but I see NO REASON WHATSOEVER FOR WHY I HAD TO DO THIS! I should be able to just
function ServerCmdasdf(%client) { %client.dump();}
right?

Xalos:

servercmdTestInvc(findClientByName(wizzle));
commandToServer('testInvc');
(in chat:) /testInvc


All of these accomplish the same thing, and in fact the last two are functionally identical.

wizzlemanizzle:

I know... but whats with that darned error???

Xalos:

In exactly what way are you calling servercmdDumperoo?

function servercmdDump(%me)   //the first argument of a server command is ALWAYS the client.
{
   %me.dump();
}

[in chat:] /dump

wizzlemanizzle:

xalos... did you read the first few posts? that particular question is answered, AND i state hatthe first argument in a server command is the client/caller.

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

Go to full version