Крашит сервер после установки FCNPC - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Русский/Russian (
https://sampforum.blast.hk/forumdisplay.php?fid=32)
+---- Thread: Крашит сервер после установки FCNPC (
/showthread.php?tid=455095)
Крашит сервер после установки FCNPC -
KeLLi - 31.07.2013
Сервер крашит после установки этого плагина
https://sampforum.blast.hk/showthread.php?tid=428066
Вырезка из логов, crashdetect+
PHP код:
[18:48:52] [debug] Server crashed while executing COOLGF.amx
[18:48:52] [debug] AMX backtrace:
[18:48:52] [debug] #0 native SetPVarInt () [00475910] from samp-server.exe
[18:48:52] [debug] #1 0001a648 in public Streamer_OnPlayerConnect () from COOLGF.amx
[18:48:52] [debug] #2 native CallLocalFunction () [00471e90] from samp-server.exe
[18:48:52] [debug] #3 00002510 in public OnPlayerConnect () from COOLGF.amx
[18:48:52] [debug] System backtrace:
[18:48:52] [debug] #0 004010b6 in ?? () from C:\Users\Kelli\Desktop\TestServer\samp-server.exe
[18:48:52] [debug] #1 63143c32 in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #2 63146076 in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #3 6313c05a in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #4 63143c5e in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #5 0047219e in ?? () from C:\Users\Kelli\Desktop\TestServer\samp-server.exe
[18:48:52] [debug] #6 004010b6 in ?? () from C:\Users\Kelli\Desktop\TestServer\samp-server.exe
[18:48:52] [debug] #7 63143c32 in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #8 63146076 in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #9 6313c05a in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #10 63143c5e in ?? () from C:\Users\Kelli\Desktop\TestServer\plugins\crashdetect.DLL
[18:48:52] [debug] #11 0046c870 in ?? () from C:\Users\Kelli\Desktop\TestServer\samp-server.exe
[18:48:52] [debug] #12 00465dcf in ?? () from C:\Users\Kelli\Desktop\TestServer\samp-server.exe
В чем может быть проблема?
Re: Крашит сервер после установки FCNPC -
DartfoL - 31.07.2013
Не используй SetPVar (и всё подобное) для ботов
Re: Крашит сервер после установки FCNPC -
KeLLi - 03.08.2013
PHP код:
OnGameModeInit:
NPC[0] = FCNPC_Create("Gun_Huyan");
FCNPC_Spawn(NPC[0],83, 1796.2704,-1147.6326,23.8229);
FCNPC_SetAngle(NPC[0],93.7959);
public FCNPC_OnTakeDamage(npcid, damagerid, weaponid)
{
new Float:pos[3];new Float:HA[3];
GetPlayerHealth(damagerid,HA[0]);
GetPlayerArmour(damagerid,HA[1]);
GetPlayerPos(damagerid,pos[0],pos[1],pos[2]);
FCNPC_AimAt(NPC[0],pos[0],pos[1],pos[2],1);
if(HA[0] < 30) FCNPC_StopAim(NPC[0]);
//if(FCNPC_GetHealth(NPC[0]) < 1) FCNPC_Kill(NPC[0]);
}
public FCNPC_OnSpawn(npcid)
{
FCNPC_SetHealth(NPC[0],100.0);
FCNPC_SetArmour(NPC[0],100.0);
FCNPC_SetWeapon(NPC[0],24);
FCNPC_SetAmmo(NPC[0],400);
}
Это то что я добавил, спустя 3 минуты сервер ложится, полностью вся вырезка из логов:
http://pastebin.com/A8vLNJwJ
Re: Крашит сервер после установки FCNPC -
Mutha_X - 03.08.2013
Подходите к проблеме проще - зачем вам вообще боты нужны?