This is really bothering me I have a XP Mod and Im trying to set up how much XP they need to get an item and this is how i have it set up and for some reason this damn negative sign shows up
PHP Code:
CvarHere = register_cvar("blah", "500" )
PHP Code:
new exp = points[id]
new cost = get_pcvar_num( CvarHere )
new left = exp - cost;
if( exp < cost )
{
ColorChat( id, GREEN, "[%s]^x01 You need %i more XP to buy this item!", TITLE, left);
return PLUGIN_HANDLED;
}
}
Well heres what i mean This is what will show up
You need -200 more XP to buy this item, lets just say it cost 500 and i have 300 it says i need -200 more
__________________