RE: [PHP] My Project

From: Date: Tue, 19 Jul 2005 16:47:02 +0000
Subject: RE: [PHP] My Project
Groups: php.general 
Request: Send a blank email to php-general+get-218973@lists.php.net to get a copy of this message
[snip] Hey guys! This is gona be one of my last questions (hopefully) But here I will include all the info about my new project. It is going to be like a RPG Game written in PHP. There is going to be a store where you could buy weapons etc... The thing I want to ask you guys is this. Lets say There is a knife i want to buy. It costs 10 points. And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that? [/snip] You use math. Now, actually what you do is keep a database where each player's stats are tracked. One of the stats is points. When the purchase occurs you update the data in the player's record.

« previous php.general (#218973) next »