RE: My Project

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux