will_aguilar
New Member
- Joined
- Jun 9, 2008
- Messages
- 2
- Reaction score
- 0
hi!
in the last rev 905 the function getPlayerBalance(cid) always returns 0 no matters the config.lua parameters
in luascript.cpp i found this
but BANK_SYSTEM is a boolean value
i change that code for this one
and works fine
thanks
yours
WiLL
in the last rev 905 the function getPlayerBalance(cid) always returns 0 no matters the config.lua parameters
in luascript.cpp i found this
Code:
case PlayerInfoBalance:
{
value = 0;
if(g_config.getString(ConfigManager::BANK_SYSTEM) == "yes")
value = player->balance;
break;
}
but BANK_SYSTEM is a boolean value
i change that code for this one
Code:
case PlayerInfoBalance:
{
value = 0;
if(g_config.getBool(ConfigManager::BANK_SYSTEM))
value = player->balance;
break;
}
and works fine
thanks

yours
WiLL