Raised This Month: $ Target: $400
 0% 

Solved [ Help ] Conditions and time.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-06-2018 , 11:27   [ Help ] Conditions and time.
Reply With Quote #1

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?

Last edited by Fuck For Fun; 06-06-2018 at 16:13.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode