Nister_Just
Умник
PHP:
[19:23:04] [kill] Hatiko_Hoffman killed Lord Shotgun
[19:23:04] [debug] Run time error 4: "Array index out of bounds"
[19:23:04] [debug] Attempted to read/write array element at index 65535 in array of size 40
[19:23:04] [debug] AMX backtrace:
[19:23:04] [debug] #0 00041974 in public S@@_OnPlayerTakeDamage (playerid=3, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\diman_000\Desktop\Z.O.N.A\gamemodes\dima.pwn:2034
[19:23:26] [kill] Diego_Ramirez killed Lord Shotgun
[19:23:26] [debug] Run time error 4: "Array index out of bounds"
[19:23:26] [debug] Attempted to read/write array element at index 65535 in array of size 40
[19:23:26] [debug] AMX backtrace:
[19:23:26] [debug] #0 00041974 in public S@@_OnPlayerTakeDamage (playerid=3, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\diman_000\Desktop\Z.O.N.A\gamemodes\dima.pwn:2034
[19:23:31] [chat] [Diego_Ramirez]: задрали
[19:23:45] [kill] D.O.M._Stalkera killed Lord Desert Eagle
[19:23:45] [debug] Run time error 4: "Array index out of bounds"
[19:23:45] [debug] Attempted to read/write array element at index 65535 in array of size 40
[19:23:45] [debug] AMX backtrace:
[19:23:45] [debug] #0 00041974 in public S@@_OnPlayerTakeDamage (playerid=3, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\diman_000\Desktop\Z.O.N.A\gamemodes\dima.pwn:2034
[19:24:15] [kill] D.O.M._Stalkera killed Lord Desert Eagle
[19:24:15] [debug] Run time error 4: "Array index out of bounds"
[19:24:15] [debug] Attempted to read/write array element at index 65535 in array of size 40
[19:24:15] [debug] AMX backtrace:
[19:24:15] [debug] #0 00041974 in public S@@_OnPlayerTakeDamage (playerid=3, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\diman_000\Desktop\Z.O.N.A\gamemodes\dima.pwn:2034
Вот всё что в public S@@_OnPlayerTakeDamage
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
PlayerShotPlayer[issuerid][playerid] = 1;
if(issuerid == INVALID_PLAYER_ID) return 1;
PlayerPlaySound(issuerid,17802,0,0,0);
//PlayerPlaySound(issuerid,6401,0.0,0.0,0.0);
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pVipKickBack] == 1 || pInfo[issuerid][pKickBackCoin])
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 23 || weaponid == 25 || weaponid == 24 || weaponid == 34 || weaponid == 31)
{
new Float:x,Float:y,Float:z,Float:angle;
GetPlayerFacingAngle(playerid,Float:angle);
GetPlayerVelocity(playerid,Float:x,Float:y,Float:z);
SetPlayerVelocity(playerid,Float:x+0.1,Float:y+0.1,Float:z+0.2);
SetPlayerFacingAngle(playerid,Float:angle);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == VIPSAMURAY)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 8)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 50);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == HEAVYSHOTGUN)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 34 || 25)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 10);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == SHOTGUNSPECIAL)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 25)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 30);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == COWBOY)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 22)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 20);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == SMOKEUP)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 32)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 15);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == SUPPORTER)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 24 || 25)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 13);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == SUROVI)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 29 || 22)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 16);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pHumanClass] == SCOUT)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 34 || 25)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 7);
}
}
}
}
if(team[issuerid] == TEAM_HUMAN)
{
if(pInfo[issuerid][pDamageMP5Coin] == 1)
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(weaponid == 24 || 29)
{
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid, hp - 10);
}
}
}
}
return 1;
}
Последнее редактирование:
