Guten Tag, meine Konsole zeigt mir per Crashdetect.dll an:
Code
[16:56:00] [debug] Run time error 4: "Array index out of bounds"
[16:56:00] [debug] Accessing element at index 65535 past array upper bound 74
[16:56:00] [debug] AMX backtrace:
[16:56:00] [debug] #0 00020a68 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 variable argument>) at C:\Users\NAME\Desktop\GTA\gta\gamemodes\GMName.pwn:1482
if(issuerid != INVALID_PLAYER_ID && InEIL[issuerid][0] || InEIL[issuerid][1] || InEIL[issuerid][2] && weaponid == 24)
{
new Float:HP;
GetPlayerHealth(playerid,HP);
ServerWaffen(issuerid,24,1);
SetPlayerHealth(playerid,HP-100);
}
if(issuerid != INVALID_PLAYER_ID && weaponid == 4)
{
new Float:HP;
ServerWaffen(issuerid,24,1);
SetPlayerHealth(playerid,GetPlayerHealth(playerid,HP)-100);
}
Das ist der Code dazu, allerdings funktioniert es nicht so richtig und kickt mich, da mein Leben wohl auf über 100 ist.