Author Topic: talking as the lag icon  (Read 960 times)

would it be enoguh to just put one function in a server.cs and leave it like that? or does it need more?

example:
Code: [Select]
function serverCmdHello(%client)
{
       messageAll(' ', "<color:ffff00>" @ %client SPC @ "<color:ffffff>: Hello"
}

i know this command would be pointless it is just an example
« Last Edit: March 31, 2011, 09:40:30 PM by Hazmat »

there's no minimum or maximum

there's no minimum or maximum
although it's easier to see if you're making some huge script if you have a folder for some category of functions and stuff.

ok thanks i guess that's not the problem i've been making a lot of things for practice one i'm working on is a command to make you talk as the lag icon but it's not working.
Code: [Select]
function serverCmdLag(%client, %msg, %msg1, %msg2, %msg3, %msg4, %msg5, %msg6, %msg7, %msg8, %msg9, %msg10, %msg11, %msg12)
{
messageAll(' ', "<bitmap:base/client/ui/lagicon.png><color:ffffff>:" @ %msg SPC %msg1 SPC %msg2 SPC %msg3 SPC %msg4 SPC %msg5 SPC %msg6 SPC %msg7 SPC %msg8 SPC %msg9 SPC %msg10 SPC %msg11 SPC %msg12);
}
any ideas?
« Last Edit: March 31, 2011, 08:39:53 PM by Hazmat »

getting any console errors with this?

ok thanks i guess that's not the problem i've been making a lot of things for practice one i'm working on is a command to make you talk as the lag icon but it's not working.

What's the point of 13 arguments?

What's the point of 13 arguments?
Because you can't do this:

/hello how are you lol

With just the argument %msg.


Without that mod on, type this in the console:

echo(isFunction(serverCmdLag));

If it echos 1, change the serverCmd name. If it's 0, I don't know.

Also, try with trace(1) so you can see whats getting called.

like otto-san is saying, serverCmdLag may already be used by something else.  If you use trace, you will be able to see that.

okay i don't know what happened but now it's not even showing up when i try to turn it on
Also, try with trace(1) so you can see whats getting called.

like otto-san is saying, serverCmdLag may already be used by something else.  If you use trace, you will be able to see that.
this just returns the same thing forever in the console
« Last Edit: March 31, 2011, 09:45:50 PM by Hazmat »

The lag icon is triggered, more or less, client side with data from the server.
It is an image, which is either show or hidden, there is no way to change what it looks like, all you can do is either show or hide it.
So what OP wants is impossible, if me understand him alright.

The lag icon is triggered, more or less, client side with data from the server.
It is an image, which is either show or hidden, there is no way to change what it looks like, all you can do is either show or hide it.
So what OP wants is impossible, if me understand him alright.
you misunderstood. he wants it to display the lag icon as well as a message.
On topic, find the server.cs that you put this in in your add-ons folder. Type exec("add-ons/insertdirectory/server.cs"); into your console. See if you get an error.

fixed! somehow the server.cs got named the same as one of my After Effects projects i wouldn't have noticed this unless placid told me that
locking