Quote:
Originally Posted by talibana
I have that error in logs and server crash when someone throw flashbang.
L 10/08/2021 - 23:26:09: [AMXX] Displaying debug trace (plugin "flashed_duration.amxx", version "0.0.1")
L 10/08/2021 - 23:26:09: [AMXX] Run time error 11: divide
L 10/08/2021 - 23:26:09: [AMXX] [0] flashed_duration.sma::EventBlinded (line 33)
|
Quote:
Originally Posted by Bugsy
What do you have the cvar set to? The plugin uses default flash time DIVIDED by this cvar value to set the duration. So to get the desired time, set it to the appropriate cvar value as outlined below. The creator of this plugin did not implement any error trapping/handling. Ideally the plugin should use the default time if the cvar value is unacceptable.
|
Yes, this happens when you divide by 0 (your cvar is set to 0), which I forgot to check.
You can simply fix this by setting the cvar greater than 0. I added a fixed version as well.
__________________