Jump to content
  • 0

Variable


Kakaroto

Question


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  624
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

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]";
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  624
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

+= 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
Link to comment
Share on other sites

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.

×
×
  • Create New...