FCNPC_Spawn crashes the server.
#1

Код:
[21:14:41] Number of vehicle models: 38
[21:14:43] [npc:join] Masinis_01 has joined the server (49:127.0.0.1)
[21:14:43] [debug] Server crashed while executing main.amx
[21:14:43] [debug] AMX backtrace:
[21:14:43] [debug] #0 native FCNPC_Spawn () from FCNPC-DL.DLL
[21:14:43] [debug] #1 001c896c in public NPC_Connect () at npc.pwn:115
[21:14:43] [debug] Native backtrace:
[21:14:43] [debug] #0 5b1be06b in ?? () from plugins\FCNPC-DL.DLL
[21:14:43] [debug] #1 5b1c7a88 in ?? () from plugins\FCNPC-DL.DLL
[21:14:43] [debug] #2 5b1c8761 in ?? () from plugins\FCNPC-DL.DLL
[21:14:43] [debug] #3 5b1de51e in ?? () from plugins\FCNPC-DL.DLL
[21:14:43] [debug] #4 004010b6 in ?? () from samp-server.exe
[21:14:43] [debug] #5 61bfd82a in ?? () from plugins\crashdetect.DLL
[21:14:43] [debug] #6 61c04fe8 in ?? () from plugins\crashdetect.DLL
[21:14:43] [debug] #7 61bfa1a7 in ?? () from plugins\crashdetect.DLL
[21:14:43] [debug] #8 61bfd87a in ?? () from plugins\crashdetect.DLL
[21:14:43] [debug] #9 5b323374 in ?? () from plugins\streamer.DLL
[21:14:43] [debug] #10 004833f8 in ?? () from samp-server.exe
[21:14:43] [debug] #11 00496b0a in ?? () from samp-server.exe
[21:14:43] [debug] #12 00492cab in ?? () from samp-server.exe
[21:14:43] [debug] #13 004a1d61 in ?? () from samp-server.exe
[21:14:43] [debug] #14 004a1d71 in ?? () from samp-server.exe
[21:14:43] [debug] Registers:
[21:14:43] [debug] EAX: 00000000 EBX: 00000001 ECX: 0b7e7450 EDX: 5b1b285b
[21:14:43] [debug] ESI: 0000003d EDI: 0b7e7450 EBP: 004a1d61 ESP: 0019fe98
[21:14:43] [debug] EIP: 004a1d71 EFLAGS: 00010287
[21:14:43] [debug] Stack:
[21:14:43] [debug] ESP+00000000: 004b1e20 0019ff70 004b1a1c ffffffff
[21:14:43] [debug] ESP+00000020: 00000094 00000006 00000002 000023f0
[21:14:43] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+000000c0: 00000000 00000000 c0000005 00000000
[21:14:43] [debug] ESP+000000e0: 004c0790 00000000 0019ff94 75a73744
[21:14:43] [debug] ESP+00000100: 7711a064 7ffde000 1fcdb9a0 00000000
[21:14:43] [debug] ESP+00000120: 00000000 00000000 1fcdb9a0 0019ffa0
[21:14:43] [debug] ESP+00000140: 00000000 0019ffec 7711a02f ffffffff
[21:14:43] [debug] ESP+00000160: 7ffde000 00000000 78746341 00000020
[21:14:43] [debug] ESP+00000180: 00000020 00000000 00000014 00000001
[21:14:43] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+000001c0: 00000044 000002e0 00000264 00000000
[21:14:43] [debug] ESP+000001e0: 0000034e 00000000 2d59495b 000008e0
[21:14:43] [debug] ESP+00000200: 32ceeacd 00000c1c 00000042 00000c60
[21:14:43] [debug] ESP+00000220: 0000005e 00000ffc 0000036e 00000000
[21:14:43] [debug] ESP+00000240: 0000039e 00000010 00000009 000000ec
[21:14:43] [debug] ESP+00000260: 00000001 00000002 0000179c 000007a0
[21:14:43] [debug] ESP+00000280: 00000001 00000004 00002dc8 00000314
[21:14:43] [debug] ESP+000002a0: 00000002 00000006 00003174 000000cc
[21:14:43] [debug] ESP+000002c0: 00000001 00000009 00003330 00000028
[21:14:43] [debug] ESP+000002e0: 00000001 64487353 0000002c 00000001
[21:14:43] [debug] ESP+00000300: 00000001 000015e8 0000002c 0000005e
[21:14:43] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[21:14:43] [debug] ESP+00000340: 00000038 00000000 003a0043 0057005c
[21:14:43] [debug] ESP+00000360: 006e0069 00780053 005c0073 00000000
[21:14:43] [debug] ESP+00000380: 00000264 00000001 f33271ba 000003c8
[21:14:43] [debug] ESP+000003a0: 2d59495b 00000764 00000032 00000798
[21:14:43] [debug] ESP+000003c0: 00000042 00000ae4 0000033c 00000004
[21:14:43] [debug] ESP+000003e0: 0000036e 00000005 b1280544 000011f0
[21:14:43] [debug] Loaded modules:
[21:14:43] [debug] 00400000 - 0051f000 samp-server.exe
[21:14:43] [debug] 770c0000 - 77239000 ntdll.dll
[21:14:43] [debug] 75a60000 - 75b50000 KERNEL32.DLL
[21:14:43] [debug] 75ff0000 - 76166000 KERNELBASE.dll
[21:14:43] [debug] 62ba0000 - 62bb1000 aswhookx.dll
[21:14:43] [debug] 74480000 - 7583f000 SHELL32.dll
[21:14:43] [debug] 74200000 - 742be000 msvcrt.dll
[21:14:43] [debug] 76ac0000 - 76f9d000 windows.storage.dll
[21:14:43] [debug] 76350000 - 7650a000 combase.dll
[21:14:43] [debug] 75f40000 - 75fec000 RPCRT4.dll
[21:14:43] [debug] 741d0000 - 741ee000 SspiCli.dll
[21:14:43] [debug] 741c0000 - 741ca000 CRYPTBASE.dll
[21:14:43] [debug] 74160000 - 741b9000 bcryptPrimitives.dll
[21:14:43] [debug] 758f0000 - 75933000 sechost.dll
[21:14:43] [debug] 76fa0000 - 7701b000 advapi32.dll
[21:14:43] [debug] 76850000 - 76894000 shlwapi.dll
[21:14:43] [debug] 75b50000 - 75c9d000 GDI32.dll
[21:14:43] [debug] 76210000 - 76350000 USER32.dll
[21:14:43] [debug] 76960000 - 7696c000 kernel.appcore.dll
[21:14:43] [debug] 75860000 - 758ed000 shcore.dll
[21:14:43] [debug] 76800000 - 76844000 powrprof.dll
[21:14:43] [debug] 759e0000 - 759ef000 profapi.dll
[21:14:43] [debug] 73da0000 - 73da8000 WSOCK32.dll
[21:14:43] [debug] 75e80000 - 75edc000 WS2_32.dll
[21:14:43] [debug] 770b0000 - 770b7000 NSI.dll
[21:14:43] [debug] 71e60000 - 71e84000 WINMM.dll
[21:14:43] [debug] 71d80000 - 71da3000 WINMMBASE.dll
[21:14:43] [debug] 76170000 - 761a6000 cfgmgr32.dll
[21:14:43] [debug] 71b90000 - 71bb1000 DEVOBJ.dll
[21:14:43] [debug] 76970000 - 7699b000 IMM32.DLL
[21:14:43] [debug] 769a0000 - 76ac0000 MSCTF.dll
[21:14:43] [debug] 61be0000 - 61c31000 crashdetect.DLL
[21:14:43] [debug] 61b70000 - 61bd9000 MSVCP100.dll
[21:14:43] [debug] 5b520000 - 5b5df000 MSVCR100.dll
[21:14:43] [debug] 619c0000 - 61a18000 pawnraknet.DLL
[21:14:43] [debug] 10000000 - 100a5000 YSF_DL.DLL
[21:14:43] [debug] 75cf0000 - 75dda000 ole32.dll
[21:14:43] [debug] 75de0000 - 75e72000 OLEAUT32.dll
[21:14:43] [debug] 5b4b0000 - 5b51d000 MSVCP140.dll
[21:14:43] [debug] 70720000 - 70734000 VCRUNTIME140.dll
[21:14:43] [debug] 73e10000 - 73eec000 ucrtbase.dll
[21:14:43] [debug] 620e0000 - 6211b000 SKY.DLL
[21:14:43] [debug] 75a50000 - 75a56000 PSAPI.DLL
[21:14:43] [debug] 5b460000 - 5b4ae000 mysql.DLL
[21:14:43] [debug] 70670000 - 7068c000 log-core.dll
[21:14:43] [debug] 5b390000 - 5b45d000 libmariadb.dll
[21:14:43] [debug] 76510000 - 76685000 CRYPT32.dll
[21:14:43] [debug] 742c0000 - 742ce000 MSASN1.dll
[21:14:43] [debug] 6fb20000 - 6fb2a000 Secur32.dll
[21:14:43] [debug] 6e6b0000 - 6e6c2000 napinsp.dll
[21:14:43] [debug] 6e690000 - 6e6a6000 pnrpnsp.dll
[21:14:43] [debug] 702e0000 - 702f3000 NLAapi.dll
[21:14:43] [debug] 70570000 - 705be000 mswsock.dll
[21:14:43] [debug] 73760000 - 737e4000 DNSAPI.dll
[21:14:43] [debug] 6fb30000 - 6fb3b000 winrnr.dll
[21:14:43] [debug] 70520000 - 70528000 rasadhlp.dll
[21:14:43] [debug] 01d20000 - 01d2e000 sscanf.DLL
[21:14:43] [debug] 5b320000 - 5b387000 streamer.DLL
[21:14:43] [debug] 5b2d0000 - 5b31a000 irc.DLL
[21:14:43] [debug] 705c0000 - 705e9000 chrono.DLL
[21:14:43] [debug] 5b1b0000 - 5b2c4000 FCNPC-DL.DLL
[21:14:43] [debug] 68ad0000 - 68ae1000 log-plugin.DLL
[21:14:43] [debug] 69a30000 - 69a3a000 pawn-memory.DLL
[21:14:43] [debug] 738a0000 - 738d0000 IPHLPAPI.DLL
[21:14:43] [debug] 73750000 - 73758000 WINNSI.DLL
[21:14:43] [debug] 6a410000 - 6a456000 fwpuclnt.dll
[21:14:43] [debug] 73230000 - 7324b000 bcrypt.dll
[21:14:43] [debug] 77020000 - 770a2000 clbcatq.dll
[21:14:43] [debug] 73250000 - 73263000 cryptsp.dll
[21:14:43] [debug] 73200000 - 7322f000 rsaenh.dll
PHP код:
function NPC_Connect()
{
    new 
npcid;
    
npcid FCNPC_Create("Masinis_01");
    
g_NPCForTrain[0] = npcid;
    
g_NPCStatus[0] = 0;
    
FCNPC_Spawn(npcid610.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCTrain[0], 0);
    
npcid FCNPC_Create("Masinis_02");
    
g_NPCForTrain[1] = npcid;
    
g_NPCStatus[1] = 1;
    
FCNPC_Spawn(npcid610.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCTrain[1], 0);
    
npcid FCNPC_Create("Masinis_03");
    
g_NPCForTrain[2] = npcid;
    
g_NPCStatus[2] = 2;
    
FCNPC_Spawn(npcid610.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCTrain[2], 0);
    
npcid FCNPC_Create("Pilot_01");
    
g_NPCForPlane[0] = npcid;
    
g_NPCStatus[3] = 0;
    
FCNPC_Spawn(npcid610.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCPlane[0], 0);
    
npcid FCNPC_Create("Pilot_02");
    
g_NPCForPlane[1] = npcid;
    
g_NPCStatus[4] = 1;
    
FCNPC_Spawn(npcid620.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCPlane[1], 0);
    
npcid FCNPC_Create("Pilot_03");
    
g_NPCForPlane[2] = npcid;
    
g_NPCStatus[5] = 2;
    
FCNPC_Spawn(npcid620.00.00.0);
    
FCNPC_PutInVehicle(npcidg_NPCPlane[2], 0);
    return 
1;

It worked in previous versions of FCNPC. I use the rc2 because rc3 won't load.
Reply
#2

Someone please? Is ther anything wrong with the code?
Reply
#3

bump,i'm still stuck with this problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)