Jump to content
  • 0
Sign in to follow this  
Torres

solved [C++] login prompt automatically change player name

Question

When I log in to the game and choose a character,  always prompt: Please modify your name.

 I spent several days trying to find the reason, but I can't do it. 

Dear developer, please help me, thank you,

most Good wishes to you, thank you for your answer!

I found that the change_name of the player table is 0.
But in the input_login.cpp CharacterSelect function here c_r.players[pinfo->index].bChangeName is 1, in which case will cause this change, where is the associated code?

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

typedef struct command_player_select
{
    BYTE    header;
    BYTE    index;
} TPacketCGPlayerSelect;

 

You fucked up something, index is 0, name is just 1 character.

-Packet problem

-Database problem

Share this post


Link to post
  • 0

Find the error line and show us the if statement that makes problem.

  • Love 1

Share this post


Link to post
  • 0

SYSERR: Aug  9 17:08:16 :: CharacterSelect: name must be changed idx 0, login xiaoyu, name w

Share this post


Link to post
  • 0

thank you !man !@WeedHex

it's work good now!

 

Bes wishes to you, thank you for your answer!

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
  • Recently Browsing   0 members

    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.