Disable Cost-Ratio?

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
playordie
Peon
Posts: 2
Joined: Tue Feb 26, 2008 3:16 pm

Disable Cost-Ratio?

Post by playordie » Sat Mar 01, 2008 5:24 pm

How i can disable ITEM_COST_RATIO?


--- Please enter the following information for support ---
War3ft Version: v3.0 RC10


ok i found:

this

Code: Select all

// We created this to allow for different prices of items at different levels
ITEM_Cost( id, iItem )
{
	// How much should ratio increase per level?
	new Float:fInc = ( 1.0 - ITEM_COST_RATIO ) / float( MAX_LEVELS );

	// Cost * ratio (ITEM_COST_RATIO to 1.0 dependent on level)
	new Float:fRatio = (float( p_data[id][P_LEVEL] ) * fInc) + ITEM_COST_RATIO;

	return floatround( float( ITEM_COST[iItem] ) * fRatio );
}
to this

Code: Select all

// We created this to allow for different prices of items at different levels
ITEM_Cost( id, iItem )
{
	return floatround( float( ITEM_COST[iItem] ) );
}
but with an error:

warning 203: symbol is never used: "id"

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Sat Mar 01, 2008 7:48 pm

That is not an error. That is just a warning telling you that you didn't use a variable. It can be ignored
Image

No support via PM or Email

playordie
Peon
Posts: 2
Joined: Tue Feb 26, 2008 3:16 pm

Post by playordie » Sun Mar 02, 2008 7:22 am

thank you :D

kp_downarrow
Rifleman
Posts: 162
Joined: Thu Dec 21, 2006 2:12 am

Post by kp_downarrow » Sat Mar 15, 2008 5:14 pm

put id++, then the error would be gone

Post Reply