OnPlayerTakeDamage
#1

the player with id 0 fell out from high location so he died with Collision - the Collision ID is 54 - the amount of the Collision in this case is 1126498304 (although it is a high value but it's not the problem) - the body part that was hit is Torso, how issuer id took 65535 as input!!! please tell me!! - MAX_PLAYERS is 1000 - I do need to know how that happened to fix it.

How this even possible?

[code]
OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
OnPlayerTakeDamage (0, 65535, 1126498304, 54, 3)
[code]
Code:
[debug] Run time error 4: "Array index out of bounds"
[23:32:40] [debug]  Attempted to read/write array element at index 65535 in array of size 1000
[23:32:40] [debug] AMX backtrace:
[23:32:40] [debug] #0 0015ac54 in ?? (0, 65535, 1126498304, 54) in HS-RP.amx
[23:32:40] [debug] #1 00015ff8 in public OnPlayerTakeDamage (0, 65535, 1126498304, 54, 3) in HS-RP.amx
Reply


Messages In This Thread
OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 02:32
Re: OnPlayerTakeDamage - by B3x7K - 19.01.2019, 02:39
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 02:58
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:20
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:37
Re: OnPlayerTakeDamage - by GeorgeLimit - 19.01.2019, 03:46
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:58
Re: OnPlayerTakeDamage - by ApolloScripter - 19.01.2019, 05:10
Re: OnPlayerTakeDamage - by Undef1ned - 19.01.2019, 12:33
Re: OnPlayerTakeDamage - by GeorgeLimit - 19.01.2019, 13:24
Re: OnPlayerTakeDamage - by B3x7K - 19.01.2019, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)