Page 1 of 1

Disable Cost-Ratio?

Posted: Sat Mar 01, 2008 5:24 pm
by playordie
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"

Posted: Sat Mar 01, 2008 7:48 pm
by YamiKaitou
That is not an error. That is just a warning telling you that you didn't use a variable. It can be ignored

Posted: Sun Mar 02, 2008 7:22 am
by playordie
thank you :D

Posted: Sat Mar 15, 2008 5:14 pm
by kp_downarrow
put id++, then the error would be gone