Topic: /seticon /swapicon
I tried to apply the script / seticon and / swapicon and have entered the code
extern int account_get_ladder_rank2(t_account * account, t_clienttag clienttag, const char* id)
{
char key[256];
char clienttag_str[5];
if (!clienttag)
{
eventlog(eventlog_level_error,__FUNCTION__,"got bad clienttag");
return 0;
}
std::sprintf(key,"Record\\%s\\%s\\rank",tag_uint_to_str(clienttag_str,clienttag),id);
return account_get_numattr(account,key);
}
extern int account_set_auth_icon(t_account * account, char const * icon_name, int val)
{
char temp[256];
std::sprintf(temp,"BNET\\auth\\icon\\%.100s",icon_name);
return account_set_boolattr(account, temp, val);
}
extern int account_get_auth_icon(t_account * account, char const * icon_name)
{
char temp[256];
std::sprintf(temp,"BNET\\auth\\icon\\%.100s",icon_name);
return account_get_boolattr(account, temp);
}
but still put out an error when building pvpgn
17>..\..\..\source\src\bnetd\command.cpp(774): warning C4146: unary minus operator applied to unsigned type, result still unsigned
17>..\..\..\source\src\bnetd\command.cpp(1761): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1762): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1763): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1764): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1765): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1766): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1767): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1768): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1769): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1770): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1771): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1772): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1773): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1774): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1775): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1776): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1777): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1778): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1779): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1780): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1781): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1782): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1783): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1784): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1785): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1786): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1787): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1846): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1846): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1848): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1848): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1850): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1850): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1852): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1852): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1854): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1854): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1856): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1856): error C3861: 'account_get_ladder_rank2': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1877): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1956): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1958): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1960): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1962): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1964): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1966): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1968): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1970): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1972): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1974): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1976): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1978): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1980): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1982): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1984): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1986): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1988): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1990): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1992): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1994): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1996): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(1998): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2000): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2002): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2004): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2006): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2008): error C3861: 'account_get_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2037): error C3861: 'account_set_auth_icon': identifier not found
17>..\..\..\source\src\bnetd\command.cpp(2044): error C3861: 'account_set_auth_icon': identifier not found
anyone can help me on this issue