Thread: [Ajuda] Include weapon-config
View Single Post
Old 27/05/2020, 03:27 AM   #4
RodrigoMSR
High-roller
 
RodrigoMSR's Avatar
 
Join Date: Mar 2015
Location: Brazil
Posts: 1,079
Reputation: 140
Default Re: Include weapon-config

Quando o dano é de queda e etc., o issuerid vem com valor 65535 (INVALID_PLAYER_ID), por isso causa esse erro e o sistema trava. Você tem que checar se o issuerid é válido antes de usá-lo em arrays (igual no meu exemplo acima).

Code:
[debug]  Accessing element at index 65535 past array upper bound 102
Code:
[debug] #1 0007ec4c in public OnPlayerDamage (&playerid=@00dcb81c 3, &Float:amount=@00dcb820 165.00000, &issuerid=@00dcb824 65535, &weapon=@00dcb828 54, &bodypart=@00dcb82c 3) at C:\servidor\pawno\include\weapon-config.inc:5479
__________________
sttserver.net

RodrigoMSR is offline   Reply With Quote