I try to do an ad when a player tries to put on Deposit amount below 2500 $, but it shows incorrectly
Code:
enum _:enumCvar
{
CVAR_DEPOSIT
}
new g_aCvar[ enumCvar ];
Code:
g_aCvar[ CVAR_DEPOSIT ] = register_cvar( "jp_deposit_min", "2500" );
Code:
new intDeposit = Amount;
new intMin = get_pcvar_num( g_aCvar[ CVAR_DEPOSIT ] );
if( intDeposit < intMin )
{
ColorChat( id, "Your cash is not enough to deposit to ^3jackpot ^4[^1%d^3/^1%d^4]^1.", intMin - intDeposit, 2500);
return PLUGIN_HANDLED;
}
IN-Game is shown:
Code:
[AMXX] Your cash is not enough to deposit to jackpot [65/2500].
what the prob with %d/%d [65/2500] = what is 65?