Jump to content
  • 0
kilow

Convert account id in charid?

Question

Posted (edited)

Hello,
Can someone tell me why this script don't return char id?
 

Quote

    bg_get_data(.red, 1);
    for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
        .teamcid[[email protected]] = convertpcinfo([email protected][[email protected]],CPC_CHAR);
    }
    party_create("teamredred",.teamcid[1]);
    .partyid = [email protected]_create_id;
    for ( [email protected] = 1; [email protected] < getarraysize(.teamcid)-1; [email protected] ) {
        party_addmember(.partyid,teamcid[[email protected]]);
    }

i also tried this :

Quote

    bg_get_data(.red, 1);
    for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
        .teamname[[email protected]] = rid2name([email protected][[email protected]]);
    }
  
    for ( [email protected] = 0; [email protected] < getarraysize(.teamname)-1; [email protected] ) {
        .teamcid[[email protected]] = getcharid(0,.teamname[[email protected]]);
    }

    party_create("teamredred",.teamcid[0]);
    .partyid = [email protected]_create_id;
    for ( [email protected] = 1; [email protected] < getarraysize(.teamcid)-1; [email protected] ) {
        party_addmember(.partyid,teamcid[[email protected]]);
    }

Thank you

 

Edited by kilow
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Finally, i made a npc that the first player who has a party and click on the npc, his team is registered and other can join by clicking. Not usual but it works.
Thank you for your answer

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.