OnPlayerTakeDamage Run time error
#1

PHP Code:
[19:39:44] [debugRun time error 4"Array index out of bounds"
[19:39:44] [debugAMX backtrace:
[
19:39:44] [debug#0 0007250c in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at C:\Users\Me\map.pwn:2670 
Those are some weird values... what's going on?
Reply
#2

Nothing weird about that. Show your OnPlayerTakeDamage.
Reply
#3

No need to show anything.

Just check

Code:
if(issuerid != INVALID_PLAYER_ID)
{
     code
}
before using issuerid.
Reply
#4

Nvm, solved it! I had wrong weaponid assigned.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)