new iPoints[33]
if(iPoints[id] >= YOUR_ITEM_PRICE){ // code iPoints[id] -= YOUR_ITEM_PRICE}else{ // code}