AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Run Time 11 error divide (https://forums.alliedmods.net/showthread.php?t=276376)

Kakarot47 12-20-2015 10:20

Run Time 11 error divide
 
1 Attachment(s)
In the server when i plugin and i enable debug so it says Runtime 11 error divide found on 367 line HELP
Line 366 to 369
PHP Code:

        length=sqrt(velocityvec[0]*velocityvec[0]+velocityvec[1]*velocityvec[1]+velocityvec[2]*velocityvec[2])
        
velocityvec[0]=velocityvec[0]*1000/length 
        velocityvec
[1]=velocityvec[1]*1000/length 
        velocityvec
[2]=velocityvec[2]*1000/length 


Kakarot47 12-20-2015 10:51

Re: Run Time 11 error divide
 
Can someonee will fix plz

addons_zz 12-20-2015 19:12

Re: Run Time 11 error divide
 
Here it is working fine. How can you reproduce it? This plugin has its own thread: Fireworks++ 3.0, ask support there.

http://i.imgur.com/huX2TpZ.png

Kakarot47 12-21-2015 16:10

Re: Run Time 11 error divide
 
Thanks for reply but i solved the division. Author mismatch the division between fireworks explodation
The code should be like this

PHP Code:

 length=sqrt(velocityvec[0]*velocityvec[0]+velocityvec[1]*velocityvec[1]+velocityvec[2]*velocityvec[2])
        
velocityvec[0]=velocityvec[1]*1000/length 
        velocityvec
[1]=velocityvec[2]*1000/length 
        velocityvec
[2]=velocityvec[0]*1000/length 



All times are GMT -4. The time now is 17:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.