Thanks for taking the time to help me. Cant believe fixing the ratio was as simple as this.
PHP Code:
#define ITEM_COST_RATIO 1.0 // Changed from 0.7 to 1.0
I tried adding the code you made for me to the items.inl but it wouldnt compile and I have something else to do right now. Ill report back later.
Indigo~
EDIT:
Alright, so I suppose you left out a few signs to make me look at it
PHP Code:
public ITEM_CanBuy( id, iItem )
{
if (iItem == ITEM_BOOTS && (floatcmp(floatabs(get_user_maxspeed(id)), 1.0) != 0)) {
client_print(id, print_center, "Your speed is already enhanced.");
return false;
} else if (iItem == ITEM_SOCK && (floatcmp(get_user_gravity(id), 1.0) != 0)) {
client_print(id, print_center, "Your gravity is already enhanced.");
return false;
}
That did the trick!
Thanks for the help its much appriciated.