Thanks, alot. I Already know < is less than but
PHP Code:
if( exp >= cost )
{
if( is_user_alive( id ) )
{
if( !ItemUsed[id] )
{
ColorChat( id, GREEN, "[%s]^x01 You have purchased^x03 This item!", TITLE );
points[ id ] -= cost
ItemUsed[id] = true;
other part
PHP Code:
else if( exp < cost )
{
ColorChat( id, GREEN, "[%s]^x01 You need %i more XP to buy This Item", TITLE, left);
return PLUGIN_HANDLED;
}
}
thats why i have exp < cost so if they have a less amount it'll show them they how much they need left the problem is it shows You need -Numberhere to buy this item
__________________