Hier mein Errorcode in samp-server.exe
[16:41:19] [debug] Run time error 4: "Array index out of bounds"
[16:41:19] [debug] Accessing element at index 65535 past array upper bound 282
[16:41:19] [debug] AMX backtrace:
[16:41:19] [debug] #0 00360188 in public OnPlayerWeaponShot () from RRR40.amx
[16:41:20] [debug] Run time error 4: "Array index out of bounds"
[16:41:20] [debug] Accessing element at index 65535 past array upper bound 282
[16:41:20] [debug] AMX backtrace:
[16:41:20] [debug] #0 00360188 in public OnPlayerWeaponShot () from RRR40.amx
[16:41:22] [debug] Run time error 4: "Array index out of bounds"
[16:41:22] [debug] Accessing element at index 65535 past array upper bound 282
[16:41:22] [debug] AMX backtrace:
[16:41:22] [debug] #0 00360188 in public OnPlayerWeaponShot () from RRR40.amx
hier mein pwn code
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
if(weaponid == 38 && PlayerInfo[hitid][pSQLID] == 1 && Minigunarena[playerid] != 1 || weaponid == 38 && PlayerInfo[hitid][pSQLID] == 2 && Minigunarena[playerid] != 1 || weaponid == 38 && PlayerInfo[hitid][pSQLID] == 3 && Minigunarena[playerid] != 1){
return 0;
}
if(PlayerInfo[hitid][pImDMSchutz] == 1 && !IsACop(playerid) && PlayerInfo[playerid][pTeam] != 8){//Der Spieler stirbt
return 0;
}
if(PlayerInfo[playerid][pImDMSchutz] == 1 && !IsACop(hitid) && PlayerInfo[hitid][pTeam] != 8){//Der Spieler tötet
return 0;
}
return 1;
}