Jump to content

ACMD(do_user) can't work


Go to solution Solved by Jira,

Recommended Posts

4 hours ago, Torres said:

HI devs,I have a error.

when I am Gm,I use  "/u" ,ACMD(do_user);,can't work,nothing can show,

How can I fix it?
Thank you for your answer
best wishes to you!

This is mine if it helps:

Spoiler

ACMD(do_user)
{
    const DESC_MANAGER::DESC_SET & c_ref_set = DESC_MANAGER::instance().GetClientSet();
    user_func func;

    func.initialize(ch);
    std::for_each(c_ref_set.begin(), c_ref_set.end(), func);

    if (func.count % 4)
        ch->ChatPacket(CHAT_TYPE_INFO, func.str);

    ch->ChatPacket(CHAT_TYPE_INFO, "Total %d", func.count);
}

 

 

I don't know what that is supost to do but here it is :D

  • Love 1

It's all lies

Link to comment
Share on other sites

1 hour ago, Torres said:

I am the same as your file, but the "/u" GM command is not working, I am very upset, thank you for your answer.@displayjokes

Check in cmd.cpp if you have the user command: https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

If you do have it like that, try to use /user instead of /u

Edited by Metin2 Dev
Core X - External 2 Internal

It's all lies

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.