02.11.2014, 01:05
What do you do when this appears?It may be Max_players or somtething
[08:35:11] [debug] Run time error 4: "Array index out of bounds" [08:35:11] [debug] Accessing element at index 65535 past array upper bound 499 [08:35:11] [debug] AMX backtrace: [08:35:11] [debug] #0 000bc694 in public hl_OnPlayerTakeDamage (4, 65535, 1079194420, 54, 3) from TDM.amx [08:35:11] [debug] #1 00022f34 in ?? (4, 65535, 1079194420, 54, 3) from TDM.amx [08:35:11] [debug] #2 0001394c in public GPA_OnPlayerTakeDamage (4, 65535, 1079194420, 54, 3) from TDM.amx [08:35:11] [debug] #3 native CallLocalFunction () from samp-server.exe [08:35:11] [debug] #4 00003618 in public OnPlayerTakeDamage (4, 65535, 1079194420, 54, 3) from TDM.amx
new givendamage[MAX_PLAYERS];
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
givendamage[issuerid] = givendamage[issuerid]+amount;
return 1;
}