Thread: Help!
View Single Post
  #2  
Old 10-06-2001, 03:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Help!

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
Reply With Quote