Server Crash after Command
#1

Hey, my Server crash always after /newitem..
Server Log:

PHP код:
[12:24:55] [debugServer crashed while executing main.amx
[12:24:55] [debugAMX backtrace:
[
12:24:55] [debug#0 native CA_GetModelBoundingSphere () from ColAndreas_static.so
[12:24:55] [debug#1 0001a3fc in ?? (3422, 1676916, 1124754541, -1030018029, 1068957696, 0, 0, 0, 0) from main.amx
[12:24:55] [debug#2 0002b8dc in public cmd_newitem (0, 1661060) from main.amx
[12:24:55] [debug#3 native CallLocalFunction () from samp03svr
[12:24:55] [debug#4 00012060 in public OnPlayerCommandText (0, 1660984) from main.amx
[12:24:55] [debugNative backtrace:
[
12:24:55] [debug#0 f73a8180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[12:24:55] [debug#1 f73a0064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[12:24:55] [debug#2 f73a0d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[12:24:55] [debug#3 f73a2cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[12:24:55] [debug#4 f73a74d5 in ?? () from plugins/crashdetect.so
[12:24:55] [debug#5 f7701d50 in __kernel_rt_sigreturn () from linux-gate.so.1
[12:24:55] [debug#6 f71cf42c in _ZN13ObjectManager17getBoundingSphereEtR9btVector3Rf () from plugins/ColAndreas_static.so
[12:24:55] [debug#7 f71ccfea in _ZN17ColAndreasNatives25CA_GetModelBoundingSphereEP6tagAMXPi () from plugins/ColAndreas_static.so
[12:24:55] [debug#8 080950e4 in ?? () from ./samp03svr
[12:24:55] [debug#9 f73a1ad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[12:24:55] [debug#10 00000009 in ?? () from ��l�H�l�̪Q̪QͬQ̪Q?�Q̮Q$m�
[12:24:55] [debugRegisters:
[
12:24:55] [debugEAX00000000 EBXf7299000 ECXf72993a0 EDX00000000
[12:24:55] [debugESIf5bf1b2c EDI00000000 EBPffac6bb8 ESPffac6b20
[12:24:55] [debugEIPf71cf42c EFLAGS00010213
[12:24:55] [debugStack:
[
12:24:55] [debugESP+00000000ffac6bb8 f7718b70 00000d5e f71cf400
[12:24:55] [debugESP+00000020f6e03008 00000d5e ffac6b60 ffac6b5c
[12:24:55] [debugESP+0000004000000000 00000001 08519820 00000001
[12:24:55] [debugESP+00000060f5a1a008 000003a8 084c5438 080950e4
[12:24:55] [debugESP+00000080ffac6cb0 00000000 f71ccf90 f73ccff4
[12:24:55] [debugESP+000000a0084c5438 00000070 ffac6dac f5bf1b2c
[12:24:55] [debugESP+000000c0f7724d20 0832a699 ffac6c78 f74f29b8
[12:24:55] [debugESP+000000e000000000 00000000 00000000 00000002
[12:24:55] [debugESP+00000100f762c0f9 00000000 08329c60 f7724d20
[12:24:55] [debugESP+0000012000000000 00000000 00000000 00000000
[12:24:55] [debugESP+0000014000000000 00000001 f74f2941 f76f3000
[12:24:55] [debugESP+0000016000000000 00000002 ffac6ca8 f74f2e7a
[12:24:55] [debugESP+0000018000000069 f7725000 00000000 f73a15a4
[12:24:55] [debugESP+000001a000000070 084c5438 00000000 0019962c
[12:24:55] [debugESP+000001c0ffac6cd0 f7725000 00000000 f7724d20
[12:24:55] [debugESP+000001e0084c5438 084898b8 ffac6fdc f73a6560
[12:24:55] [debugESP+00000200084898b8 0000001b 084c5438 00000000
[12:24:55] [debugESP+00000220084c5438 f5a36200 f5a1be08 f73aa50f
[12:24:55] [debugESP+00000240084c5438 00000059 0001a3fc f5a1a008
[12:24:55] [debugESP+000002600019962c 00199788 001958ac f5a1be08
[12:24:55] [debugESP+000002800003c71c 084c5438 f76f030d 00000001
[12:24:55] [debugESP+000002a0084898b8 00000059 f73cd660 f73a3376
[12:24:55] [debugESP+000002c000012060 00000059 f76efe49 f73877d4
[12:24:55] [debugESP+000002e008329c60 0832a699 00000000 f72e06f4
[12:24:55] [debugESP+0000030008329c60 0832a699 084c5438 00000001
[12:24:55] [debugESP+0000032008519e74 0832a498 00000001 f7443b1c
[12:24:55] [debugESP+0000034000000008 00000006 00000040 00199820
[12:24:55] [debugESP+0000036000011f4c f5a1a008 00000008 f73ccff4
[12:24:55] [debugESP+00000380084898b8 ffac6fdc 00000059 f73877d4
[12:24:55] [debugESP+000003a0ffac6ed4 7fffffff f7372948 084c5438
[12:24:55] [debugESP+000003c000000059 084c5438 ffac6f28 f72ee406
[12:24:55] [debugESP+000003e000000002 00199780 00000002 00000000
[12:24:55] [debugLoaded modules:
[
12:24:55] [debug00000000 00187dc3 samp03svr
[12:24:55] [debugf7701000 f7701e96 linux-gate.so.1
[12:24:55] [debugf76ef000 f76f181b /lib32/libdl.so.2
[12:24:55] [debugf76d3000 f76edd2b /lib32/libpthread.so.0
[12:24:55] [debugf75e1000 f76dace6 /usr/lib32/libstdc++.so.6
[12:24:55] [debugf759b000 f75dfb97 /lib32/libm.so.6
[12:24:55] [debugf757e000 f759a3c4 /usr/lib32/libgcc_s.so.1
[12:24:55] [debugf73d0000 f7585237 /lib32/libc.so.6
[12:24:55] [debugf7704000 f77254a0 /lib/ld-linux.so.2
[12:24:55] [debugf738a000 f73ccac4 plugins/crashdetect.so
[12:24:55] [debugf72b4000 f738a7f0 plugins/streamer.so
[12:24:55] [debugf76f6000 f76fd09f /lib32/librt.so.1
[12:24:55] [debugf72a4000 f72b31d4 plugins/sscanf.so
[12:24:55] [debugf7197000 f72a579b plugins/ColAndreas_static.so
[12:24:55] [debugf6dc4000 f6dcf3ef /lib32/libnss_files.so.2 
Reply
#2

How about showing the code?
Reply
#3

does newitem create an item or what?

where`s the code?
Reply
#4

PHP код:
CMD:newitem(playeridparams[])
{
    if (!
IsPlayerAdmin(playerid))
    {
        return 
SendClientMessage(playeridCOLOR_TOMATO"You must be RCON-Admin to use this command.");
    }
    new 
itemName[MAX_ITEM_NAME], itemModelid;
    if (
sscanf(params"is[64]"itemModeliditemName))
    {
        return 
SendClientMessage(playeridCOLOR_DEFAULT"Usage: /newitem [modelid] [name]");
    }
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    new 
Float:ang;
    
GetPlayerFacingAngle(playeridang);
    
+= (1.5 floatsin(-angdegrees));
    
+= (1.5 floatcos(-angdegrees));
    new 
itemid Inv_AddItem(itemModeliditemNamexyz);
    if (
itemid == -1)
    {
        return 
SendClientMessage(playeridCOLOR_TOMATO"Cannot add anymore items, reached limit.");
    }
    
    
Inv_EditItem(playeriditemid);
    new 
string[128];
    
format(stringsizeof string"Item created: %s [itemid: %i | modelid: %i]"itemNameitemiditemModelid);
    
SendClientMessage(playeridCOLOR_GREENstring);
    
createdItems[createdItemsCount++] = itemid;
    
SendClientMessage(playeridCOLOR_DEFAULT"Item added to /items list, If you want to duplicate this item, type /additem.");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)