Disable Cost-Ratio?
Posted: 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
to this
but with an error:
warning 203: symbol is never used: "id"
--- 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 );
}
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] ) );
}
warning 203: symbol is never used: "id"