Jump to content
MakeWebGames

crimecreation

Members
  • Posts

    7
  • Joined

  • Last visited

crimecreation's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. cheers think ive got it now :) that was hard work lol.
  2. nope didnt work either goes from 270,600 to 271. lol.
  3. if ($stat['strength_extra'] > 0) { $extra = ((($stat['strength']/100)*$stat['strength_extra'])+$stat['strength']); $stat['strength'] += $extra; echo number_format ($stat['strength']); } it didnt work either :( this is quite hard to figure out lol. 270,600 to 541. didnt add that number on top of the stat. it just shows the number thats meant to add on top of it. any ideas?
  4. didnt work either :( my strength just went from 270,600 to 271. cant figure this out lol. sorry if im bugging you on this.
  5. yes, it will stay on forever. When you purchase the 0.2 value for the $stat['strength_extra'] it will well make the value 0.2% extra stats. But then you can purchase another 0.2 when you get the requirements and then you'll have 0.4% extra. I wont need to edit the items at all, as its nothing to do with that type of thing.   I tried that but didnt work. :( $extra = ($stat['strength'])*$stat['strength_extra']; // strength_extra value is 0 until purchasing the 0.2 and etc. $newStr = $stat['strength'] + $extra; ".number_format($newStr)." // for stat display. any chance you could try different method to help me out at all please?
  6. not quite sure what you mean. but i tried ".number_format($stat['strength_extra'] = $stat['strength'] * 1.02)." but it just dropped my strength down from 264,600 to 269. ($stat['strength_extra'] value is 0.2 on my user) but wanna change that 0.2 into a addon percentage (%).
  7. 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; ____________________________________________________
×
×
  • Create New...