POG1 Posted December 13, 2008 Share Posted December 13, 2008 I'm having trouble workng out a level from exp. If $enduranceXp has a value of 50 using this the $lvl will be 0... $e = $enduranceXp; $lvl=0; while($e < 0) { $lvl++; $e = $e - ($e * 0.4); } any ideas? Quote Link to comment Share on other sites More sharing options...
Will Posted December 13, 2008 Share Posted December 13, 2008 Re: loop problem Well in will only ever increase the level is the exp is less than 0: while($e < 0) { Mayby it should be > instead? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.