WEIRD Crash Detect Logs? Spamming the log
#1

Код:
[00:20:10] [debug] Run time error 4: "Array index out of bounds"


[00:20:10] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000008, 0x0000ffff, 0x40533334, 0x00000036, 0x00000003) from CodWaw.amx
Код:
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e424dd5, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e316875, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e39db24, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e424dd5, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e316875, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e424dd5, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e39db24, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e533334, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e400002, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e316875, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
[16:12:12] [debug] #0 00040ccc in public OnPlayerTakeDamage (0x00000006, 0x0000ffff, 0x3e316875, 0x00000025, 0x00000003) from CodWaw.amx
[16:12:12] [debug] Run time error 4: "Array index out of bounds"
[16:12:12] [debug]  Accessing element at index 65535 past array upper bound 499
[16:12:12] [debug] AMX backtrace:
Any help please?
Reply
#2

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 499
The above error means that index of value 65535 tried to access your array which would go only up to 499. Since it's called under OnPlayerTakeDamage, I assume that you're using issuerid parameter over arrays without taking in concern that it will be assigned as INVALID_PLAYER_ID(65535) when player receives damage, but not due to any player.

pawn Код:
public OnPlayerTakeDamage(...) {

    //While assigning them on arrays, do a check.
    if(issuerid != INVALID_PLAYER_ID) {

        //Array stuffs.
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 499
The above error means that index of value 65535 tried to access your array which would go only up to 499. Since it's called under OnPlayerTakeDamage, I assume that you're using issuerid parameter over arrays without taking in concern that it will be assigned as INVALID_PLAYER_ID(65535) when player receives damage, but not due to any player.

pawn Код:
public OnPlayerTakeDamage(...) {

    //While assigning them on arrays, do a check.
    if(issuerid != INVALID_PLAYER_ID) {

        //Array stuffs.
    }
    return 1;
}
Thank you bro so much! +rep, will it stop spamming the log? Please answer
Reply
#4

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
Thank you bro so much! +rep, will it stop spamming the log? Please answer
It will if you're doing it correctly. Also letting you know that the same got chance to happen over OnPlayerDeath callback too as killerid might get called as INVALID_PLAYER_ID if playerid wasn't killed by anyone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)