dimachepul
Новичок
Суть проблемы:
1. Крашит игроков ( предположительно из за смерти )
2. Бывает, что игрока убили - он для всех лежит на полу, а на самом деле бегает.
Что выдает краш детектор:
Проблемный паблик...
1. Крашит игроков ( предположительно из за смерти )
2. Бывает, что игрока убили - он для всех лежит на полу, а на самом деле бегает.
Что выдает краш детектор:
PHP:
[14:16:53] [debug] AMX backtrace:
[14:16:53] [debug] #0 0009bd40 in public OnPlayerTakeDamage (playerid=2, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\Administrator\Desktop\DM\gamemodes\MyMod.pwn:2449
[14:17:04] [kill] Vika_Ras killed Billi_Richardson M4
[14:17:04] [debug] Run time error 4: "Array index out of bounds"
[14:17:04] [debug] Accessing element at index 65535 past array upper bound 9
[14:17:04] [debug] AMX backtrace:
[14:17:04] [debug] #0 0009bd40 in public OnPlayerTakeDamage (playerid=2, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\Administrator\Desktop\DM\gamemodes\MyMod.pwn:2449
[14:17:13] sscanf warning: Strings without a length are deprecated, please add a destination size.
[14:17:30] [kill] Vika_Ras killed Billi_Richardson M4
[14:17:30] [debug] Run time error 4: "Array index out of bounds"
[14:17:30] [debug] Accessing element at index 65535 past array upper bound 9
[14:17:30] [debug] AMX backtrace:
[14:17:30] [debug] #0 0009bd40 in public OnPlayerTakeDamage (playerid=2, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\Administrator\Desktop\DM\gamemodes\MyMod.pwn:2449
[14:17:50] [part] Element has left the server (0:1)
[14:18:02] [kill] Vika_Ras killed Billi_Richardson M4
[14:18:02] [debug] Run time error 4: "Array index out of bounds"
[14:18:02] [debug] Accessing element at index 65535 past array upper bound 9
[14:18:02] [debug] AMX backtrace:
[14:18:02] [debug] #0 0009bd40 in public OnPlayerTakeDamage (playerid=2, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\Administrator\Desktop\DM\gamemodes\MyMod.pwn:2449
[14:18:32] [kill] Vika_Ras killed Billi_Richardson M4
[14:18:32] [debug] Run time error 4: "Array index out of bounds"
[14:18:32] [debug] Accessing element at index 65535 past array upper bound 9
[14:18:32] [debug] AMX backtrace:
[14:18:32] [debug] #0 0009bd40 in public OnPlayerTakeDamage (playerid=2, issuerid=65535, Float:amount=3.30000, weaponid=54, ... <1 argument>) at C:\Users\Administrator\Desktop\DM\gamemodes\MyMod.pwn:2449
[14:19:23] [kill] Vika_Ras killed Billi_Richardson M4
[14:19:23] [debug] Run time error 4: "Array index out of bounds"
[14:19:23] [debug] Accessing element at index 65535 past array upper bound 9
PHP:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(Kolokol[issuerid] == 0)
{
PlayerPlaySound(issuerid,6401,0.0,0.0,0.0);
}
return 1;
}
Последнее редактирование:
