Run time error 11: divide
1 Attachment(s)
HTML Code:
L 02/08/2022 - 10:47:33: [AMXX] Displaying debug trace (plugin "dmc233.amxx", version "2.33")PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Run time error 11: divide
Try to round the number using floatround()
Code:
MapPercent[Num] = floatround((MapVote[Num]*100 ) / AllVotes); |
Re: Run time error 11: divide
Make sure AllVotes is not 0 before you divide by it. You can not divide something by 0.
|
| All times are GMT -4. The time now is 11:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.