Jump to content

Question

Posted

Hello good evening, I'm a little strange problem, I'm trying to create an instance, but if you have more than one person in the group, the instance does not start, is giving errors in map_server, can anyone help me?

 

IMG:

2vYP94u.png

 

script:

1@face,109,348,5    script    Chaos#face    683,{
    if(getpartyleader(getcharid(1),2) != getcharid(0)) {
            cutin "H_CHAOS01", 2;
            mes "[Chaos]";
            mes "You are not the Partyleader.";
            close2;
            cutin "", 255;
            end;
    }
    switch('progress) {
        case 0:
        .@partyid = getcharid(1);
        getpartymember .@partyid,0;
        'members = $@partymembercount;
        'partyname$ = getpartyname(.@partyid);
        'membername$ = $@partymembername$[0];
        for(.@i = 1; .@i < 'members; .@i++) {
          'membername$ += "  " + $@partymembername$[.@i];
        }
        cutin "H_CHAOS01", 2;
        mes "[Chaos]";

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

+= operator isn't compatible with string variable in rAthena engine if I recall correctly.

 

hmm...

 

so how can I change this operator and maintain the function working properly?

 

I use this way?

 

@edit:

 

I switched the operator for only "=" and it worked ... thanks!

Edited by Kakaroto

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...