Hi everyone, I'm wondering can anyone help me on this small setup please?
Say you have 100,000 strength and you purchase a stat increasment of 0.2, how can you add that 0.2 as a % on top of the 100,000 strength?
so you'll get 100,200 strength but then say you train your strength at a gym and gain 524 strength and come out with 100,524 (oringal stat). you'll still then get the 0.2% extra strength on top and your strength will become... 100,725 strength...
if you understand what i mean, please can you help me out on this little bit please on how to set this up?
____________________________________________________
these are the stats codes
".$stat['strength']."
".$stat['strength_extra']."
this is the table field
CREATE TABLE IF NOT EXISTS `player_stats` (
`userid` int(11) NOT NULL default '0',
`strength` decimal(50,4) NOT NULL default '0.0000',
`strength_extra` decimal(5,1) NOT NULL default '0.0',
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
____________________________________________________