Proper way to write a variable using a percent?
I made this what I thought it should be and it completely breaks the quest, can someone tell me the proper format for this in perl?
This is what I currently have, it completely breaks the quest. if($mlevel >= .34 $ulevel) { It is basically supposed to say: if mob level is greater or equal to 34% of userlevel |
I think this would be the easiest way:
Code:
if($mlevel >= (.34 * $ulevel)) { Code:
if($mlevel >= ($ulevel / 3)) { |
Some times you'll see something like
Code:
if( ($mlevel * 3) >= $ulevel ) { |
Thanks guys :)
|
All times are GMT -4. The time now is 08:37 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.