Quote:
Originally posted by fireball_dolphonia
how do i make it like it has 200 of this item
and u say buy item
it lowers how many items are left
|
show items left
say2 There are #s(itemcountstring) items left.
buy items
if(strequals(#c,buy item)&&playerchats){
setstring itemcountstring,strtofloat(#s(itemcountstring))-1;
}
make sure you add protection to be sure the amount does not go below zero and the player cant buy when the ammount is <1