Hallo Brotfische,
Ich habe ein Problem mit meinem Hitsoundsystem.
Undzwar bekomme ich Fehler in der Console...
Fehler (Console):
C
[15:14:18] [debug] Run time error 4: "Array index out of bounds"
[15:14:18] [debug] Accessing element at index 65535 past array upper bound 999
[15:14:18] [debug] AMX backtrace:
[15:14:18] [debug] #0 00000acc in public OnPlayerTakeDamage (0, 65535, 1079194420, 54, 3) from bare.amx
[15:14:22] [debug] Run time error 4: "Array index out of bounds"
[15:14:22] [debug] Accessing element at index 65535 past array upper bound 999
[15:14:22] [debug] AMX backtrace:
[15:14:22] [debug] #0 00000acc in public OnPlayerTakeDamage (0, 65535, 1079194420, 54, 3) from bare.amx
[15:14:41] [debug] Run time error 4: "Array index out of bounds"
[15:14:41] [debug] Accessing element at index 65535 past array upper bound 999
[15:14:41] [debug] AMX backtrace:
[15:14:41] [debug] #0 00000acc in public OnPlayerTakeDamage (0, 65535, 1084122727, 54, 3) from bare.amx
Alles anzeigen
Codes:
C
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(HitSound[issuerid] == 1)
{
PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
SendClientMessage(issuerid,-1,"Hitsound...!");
return 1;
}
if(HitSound[playerid] == 1)
{
PlayerPlaySound(playerid,17802,0.0,0.0,0.0);
SendClientMessage(playerid,-1,"Hitsound...!");
return 1;
}
return 1;
}
Alles anzeigen
Ich hoffe ihr könnt mir helfen
MfG