Topic: help in my code,rank const char* id; please
help me please,ejem:
is correct my code?
extern int account_get_ladder_rank2(t_account * account, t_clienttag clienttag, const char* id)
{
if (!clienttag)
{
eventlog(eventlog_level_error,__FUNCTION__,"got bad clienttag");
return 0;
}
std::string key("Record\\" + tag_uint_to_str2(clienttag) + "\\" + (const_cast <const char*>(id)) + "\\rank");
return account_get_numattr(account, key.c_str());
}