19.03.2018, 19:52
Quote:
Weapon Config my forked version 0.3.DL https://github.com/MaxAndolini/samp-weapon-config
SKY Plugin 0.3.DL version http://forum.sa-mp.com/showpost.php?...&postcount=137 |
Quote:
I included weapon-config.inc and when i shoot someone he isn't losing health, also when he shoots me same problem.. i got this from crashdetect
Код:
[19:05:04] [debug] Run time error 11: "Divide by zero" [19:05:04] [debug] AMX backtrace: [19:05:04] [debug] #0 00000f78 in AverageShootRate (playerid=0, shots=1, &multiple_weapons=@00000000 0) at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\weapon-config.inc:981 [19:05:04] [debug] #1 00012b10 in public OnPlayerWeaponShot (playerid=0, weaponid=24, hittype=1, hitid=1, Float:fX=-0.19580, Float:fY=0.07214, Float:fZ=0.47790) at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\weapon-config.inc:3450 [19:05:06] [debug] Run time error 11: "Divide by zero" [19:05:06] [debug] AMX backtrace: [19:05:06] [debug] #0 00000f78 in AverageShootRate (playerid=0, shots=1, &multiple_weapons=@00000000 0) at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\weapon-config.inc:981 [19:05:06] [debug] #1 00012b10 in public OnPlayerWeaponShot (playerid=0, weaponid=24, hittype=1, hitid=1, Float:fX=-0.01489, Float:fY=0.11218, Float:fZ=0.68402) at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\weapon-config.inc:3450 [19:05:06] [debug] Run time error 11: "Divide by zero" |
create a pawn.cfg file in `pawno` folder and re-compile the gamemode
EDIT: nvm, found why.
https://github.com/Kaperstone/samp-weapon-config
I assume that if it already divides by zero, then it should return 1.
Actually, 1, and the other function might return the same, lemme edit it as well.
EDIT2: done.