SA-MP Forums Archive
OnPlayerTakeDamage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerTakeDamage (/showthread.php?tid=655045)



OnPlayerTakeDamage - SubGames - 11.06.2018

Код:
[23:57:25] [debug] AMX backtrace:
[23:57:25] [debug] #0 001deaf8 in public OnPlayerTakeDamage (0, 65535, 1084122727, 54, 3) from Gamemodd.amx
[00:07:10] [debug] Run time error 4: "Array index out of bounds"
What does this error means?


Re: OnPlayerTakeDamage - Logic_ - 11.06.2018

It's a simple God-damn error. Refer to this: https://sampforum.blast.hk/showthread.php?tid=654036 for more help and information.


Re: OnPlayerTakeDamage - Pottus - 11.06.2018

Quote:
Originally Posted by Logic_
Посмотреть сообщение
It's a simple God-damn error. Refer to this: https://sampforum.blast.hk/showthread.php?tid=654036 for more help and information.
My sentiments exactly such a simple error.


Re: OnPlayerTakeDamage - SubGames - 12.06.2018

On which line number this is happening?


Re: OnPlayerTakeDamage - JasonRiggs - 12.06.2018

Quote:
Originally Posted by SubGames
Посмотреть сообщение
On which line number this is happening?
Create a file in your pawno folder call it "pawn.cfg" and write inside it "-d3", recompile the script, and re start the server and it'll tell you the exact line.


Re: OnPlayerTakeDamage - Logic_ - 12.06.2018

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Create a file in your pawno folder call it "pawn.cfg" and write inside it "-d3", recompile the script, and re start the server and it'll tell you the exact line.
Not even needed. The crash shows the callback so he'll need to organize his callback and fix it. It's a GOD DAMN SIMPLE ERROR!


Re: OnPlayerTakeDamage - JasonRiggs - 12.06.2018

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Not even needed. The crash shows the callback so he'll need to organize his callback and fix it. It's a GOD DAMN SIMPLE ERROR!
Did i say its complicated? But since he couldn't fix it alone, Then he should learn the problem so he'll feel after that it's a "GOD DAMN SIMPLE ERROR!" calm down.