question on increasing prices for individual players
question on increasing prices for individual players
How would I write the code to increase the price of an item every time it's purchased by a player for that player only?
			
			
									
						
										
						- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: question on increasing prices for individual players
create table with fields of itemID, pname, and bought
when a player buys an item have it check to see if a entry is already there by itemID and pname,
if not insert one where bought = 1
if there is already a entry then update it and add 1 to bought. bought will be your counter.
			
			
									
						
										
						when a player buys an item have it check to see if a entry is already there by itemID and pname,
if not insert one where bought = 1
if there is already a entry then update it and add 1 to bought. bought will be your counter.
Re: question on increasing prices for individual players
Thanks again sir halls. You're always helpful.
			
			
									
						
										
						