Jump to content
  • 0

Character Variable in source


ays297

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  11/30/11
  • Last Seen:  

I just wanna now how can I add a character variable in the some @commands like @who.

 

like:

switch (display_type) {
                case 2: {
                    StrBuf->Printf(&buf, msg_txt(343), pl_sd->status.name); // "Name: %s "
                    if (pc_get_group_id(pl_sd) > 0) // Player title, if exists
                        StrBuf->Printf(&buf, msg_txt(344), pc_group_id2name(pc_get_group_id(pl_sd))); // "(%s) "
                    StrBuf->Printf(&buf, msg_txt(347), pl_sd->status.base_level, pl_sd->status.job_level,
                                     job_name(pl_sd->status.class_)); // "| Lv:%d/%d | Job: %s"
                    break;
Edited by ays297
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

what mean ?? what character variable in these command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  11/30/11
  • Last Seen:  

EDIT:

NVM, I found out how to do it. Thanks emistry. :)

Edited by ays297
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...