fix compile issue
This commit is contained in:
parent
a174f06e41
commit
bd69f60120
@ -213,11 +213,12 @@ thread OnGrabLatestDonor( hidden )
|
|||||||
|
|
||||||
// make this optional
|
// make this optional
|
||||||
if ( funding_goal <= 0.0 ) {
|
if ( funding_goal <= 0.0 ) {
|
||||||
|
new Float: funding_goal_percent = total_donations / funding_goal * 100.0;
|
||||||
|
|
||||||
// Prevents total revenue for the month being disclosed mathematically
|
// Prevents total revenue for the month being disclosed mathematically
|
||||||
if ( funding_goal_percent >= 100.0 ) {
|
if ( funding_goal_percent >= 100.0 ) {
|
||||||
TextDrawSetString( g_TopDonorTD, sprintf( "Latest Donor %s - $%0.2f, ~g~Month Is Fully %0.2f%% Funded!", szName, last_donation, 100.0 ) );
|
TextDrawSetString( g_TopDonorTD, sprintf( "Latest Donor %s - $%0.2f, ~g~Month Is Fully %0.2f%% Funded!", szName, last_donation, 100.0 ) );
|
||||||
} else {
|
} else {
|
||||||
new Float: funding_goal_percent = total_donations / funding_goal * 100.0;
|
|
||||||
TextDrawSetString( g_TopDonorTD, sprintf( "Latest Donor %s - $%0.2f, ~r~Month Is Only %0.2f%% Funded!", szName, last_donation, funding_goal_percent ) );
|
TextDrawSetString( g_TopDonorTD, sprintf( "Latest Donor %s - $%0.2f, ~r~Month Is Only %0.2f%% Funded!", szName, last_donation, funding_goal_percent ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user