Jump to content
  • 0

Skill Flag Party problem


Adrian1428

Question

I have a problem with this code , not work.


FPartyPIDCollector f;
GetParty()->ForEachOnMapMember(f, GetMapIndex());
for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++)
{
LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);
if (ch)
ch->ComputeSkill(dwVnum, ch);
}

 

Thanks in advance.

  • Love 1
Link to comment

7 answers to this question

Recommended Posts

  • 0
  • VIP

LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);

if (ch)

ch->ComputeSkill(dwVnum, ch);

Change this with:

LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it);

ComputeSkill(dwVnum, ch);

  • Love 3
Link to comment
  • 0

Please stop putting every time #solved, because now there's a lot of code not available for peoples which encounters the same bug. ^^

I edited first post.

 

The problem is that I searched for days to fix, no one wanted to tell me what's wrong and no one wants to talk about too wolfman.

 

It would be better to prohibit changing the subject.

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • Recently Browsing

    No registered users viewing this page.

×
×
  • 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.