• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TRUNK] getPlayerBalance problem

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
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 :rolleyes:
yours
WiLL
 
Back
Top