Topic: [HELP] Account system 060
I wrote
if(!strncmp(pMsg->m_pMessage, "/register", 9))
{
m_pPlayer->last_chat = time_get();
if(m_pPlayer->logged_in){
GameServer()->SendBroadcast("You are allready logged in!" ,m_pPlayer->GetCID());
return;}
char name[32];
char pass[32];
if(sscanf(pMsg->m_pMessage, "/register %s %s", name, pass) != 2)
{
// notify the user that he is stupid
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "Please stick to the given structure:");
GameServer()->SendChatTarget(m_pPlayer->GetCID(), "/register <user> <pass>");
return;
}
m_pPlayer->account->create(name, pass);
}
but it doesnt work(
Botox help me, its from [N]City