Author Topic: command not working  (Read 4416 times)

Just going to dump in this code, it's not the best and I'll probably rework it but what's not working?
Code: [Select]
function serverCmdtitle(%client, %target, %chat, %chat2, %chat3, %chat4)
{
    if(%client.isAdmin)
    {
findclientbyname(%target).setPrefix="%chat SPC %chat2 SPC %chat3 SPC %chat4";
    }

    else
    {
messageClient(%client, '', '\c6This command is Admin only.');
    }
}
After checking the console log, there is literally nothing that can help me syntax wise, but when I trigger the command it doesn't work.

help

.setPrefix isn't something you can do to a client object. You should do FindClientByName(name).dump(); to learn what you can do to a client object.

.setPrefix isn't something you can do to a client object. You should do FindClientByName(name).dump(); to learn what you can do to a client object.
Oh thank you. Is there any other way to change a client's clan tags (server sidedly of course)?

Oh thank you. Is there any other way to change a client's clan tags (server sidedly of course)?
Read:
You should do FindClientByName(name).dump(); to learn what you can do to a client object.
Your answer is in there
« Last Edit: December 15, 2014, 10:08:49 PM by Headcrab Zombie »

Any existing object can most likely have a dump

Any existing object can most likely have a dump
Dump is an engine method defined on the base object that all objects inherit from. Any object ever will always have a dump, that will show all variables and methods defined for that object

Dump is an engine method defined on the base object that all objects inherit from. Any object ever will always have a dump, that will show all variables and methods defined for that object
You can't dump autoTCPobj_Client, it would cause a buffer overrun. (That's why I said most)

You can't dump autoTCPobj_Client, it would cause a buffer overrun. (That's why I said most)
Idk what this object is, as I don't have any such named object in my install
But it's probably someone trying to store something massively huge in the object and it overflows the output buffer when you try to display it
Either way, broken or not, the method still exists

Alright I got zapk to help me out, and I realized I made two mistakes. I made a mistake with the .clanPrefix, I could've sworn it was .setPrefix but I guess this explains the no-response I keep getting with eval on my CBMHost server when I try to change my clan tag.

He also helped me with a mistake on the same line, so shoutout to zapk for his help. Locking.