-------------------------- SA-MP Server: 0.3z Exception At Address: 0x777522D2 Module: (ntdll.dll) Registers: EAX: 0x00000024 EBX: 0x0000005B ECX: 0x004E2520 EDX: 0x00000000 ESI: 0x00000024 EDI: 0x00000020 EBP: 0x0018F320 ESP: 0x0018F30C EFLAGS: 0x00010216 Stack: +0000: 0x049079EC 0x00000000 0x0211D560 0x0206E058 +0010: 0x0018F34C 0x0018F35C 0x00493990 0x00000020 +0020: 0x00493FEE 0x00000000 0x049079EC 0x00000000 +0030: 0x0000005B 0x00000FFF 0x0018F334 0x0018ED64 +0040: 0x0018FB44 0x00497FE8 0x004B2D20 0xFFFFFFFF +0050: 0x00000000 0x0040531E 0x0000005B 0x00000000 +0060: 0x049079BC 0x0018F38C 0x03A14EEC 0x0040575F +0070: 0x00000001 0x0211D560 0x0211D560 0x0000005A +0080: 0x03BA5504 0x004010B6 0x0211D560 0x049079EC +0090: 0x03BC52BC 0x00402B63 0x0211D560 0x0000000E +00A0: 0x0018F3C4 0x049079BC 0x0018F85C 0x00000001 +00B0: 0x04907E98 0x0211D560 0x00000001 0x00D426E0 +00C0: 0x00D42700 0x00D42BD0 0x00D3ECDC 0x00D429A0 +00D0: 0x00D3ECDC 0x03A14EEC 0x03BC52BC 0x00000000 +00E0: 0x03A10020 0x001B03D0 0x00472DDE 0x0211D560 +00F0: 0x0018F84C 0x000000DA 0x37333931 0x00470037 +0100: 0x00007369 0x5F646D63 0x61657263 0x626F6574 +0110: 0x0047006A 0x0211D560 0x0211D560 0x03A14EEC +0120: 0x00D3ECC4 0x00000000 0x00000000 0x00000000 +0130: 0x00000000 0x00000000 0x00000000 0x00000000 -------------------------- -------------------------- SA-MP Server: 0.3z Exception At Address: 0x7775DFE4 Module: (ntdll.dll) Registers: EAX: 0xE4FFFFF8 EBX: 0xE5000000 ECX: 0x0018FBEC EDX: 0x00000012 ESI: 0x02040000 EDI: 0x00000000 EBP: 0x0018E824 ESP: 0x0018E814 EFLAGS: 0x00010246 Stack: +0000: 0xE5000000 0x004B85C8 0x0018FCB0 0x00000000 +0010: 0x0018E838 0x766114AD 0x02040000 0x00000000 +0020: 0xE5000000 0x0018E874 0x00493BF1 0x02040000 +0030: 0x00000000 0xE5000000 0x004B85C8 0xFFFFFFFF +0040: 0x0018FCB0 0x43280930 0x0018E84C 0x0018E26C +0050: 0x0018E8CC 0x00497FE8 0x004B2CF0 0xFFFFFFFF +0060: 0x0018FCBC 0x0044E129 0xE5000000 0x0049E3D7 +0070: 0x004B85C8 0xFFFFFFFF 0x0018E89C 0x004B85C0 +0080: 0x0018FCB0 0x0018FCBC 0x0018E8DC 0x0049DB78 +0090: 0x004A52C0 0x0018FCB0 0x00000103 0x19930520 +00A0: 0x004B85C8 0x00000000 0xFFFFFFFF 0x00000000 +00B0: 0x0018E8B0 0x0018E26C 0x0018E94C 0x00497FE8 +00C0: 0x004B6F08 0x00000001 0x0018E8FC 0x0049E2E6 +00D0: 0x0018FCB0 0x0018EA44 0x004B85C8 0xFFFFFFFF +00E0: 0x00000000 0x00000000 0x0018E934 0x0049593C +00F0: 0x0018E9A4 0x0018FCB0 0x0018EA50 0x0018EA44 +0100: 0x004B85C8 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x004B85C8 +0120: 0x0018E958 0x7778B499 0x0018E9A4 0x0018FCB0 +0130: 0x0018EA50 0x0018EA44 0x0018FCB0 0x7778B4D4 --------------------------
CMD:createobj(playerid, params[]) { new string[128], object; if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pMapper] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); if(!mDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Mapper Duty."); if(sscanf(params, "i", object)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /createobj [objectid]"); for(new idx=1; idx<MAX_OBJ; idx++) { if(!ObjInfo[idx][oModel]) { GetPlayerPos(playerid, ObjInfo[idx][oX], ObjInfo[idx][oY], ObjInfo[idx][oZ]); ObjInfo[idx][oModel] = object; oldoID = ObjInfo[idx][oModel]; oldodX = ObjInfo[idx][oX]; oldodY = ObjInfo[idx][oY]; oldodZ = ObjInfo[idx][oZ]; oldodRX = ObjInfo[idx][oRX]; oldodRY = ObjInfo[idx][oRY]; oldodRZ = ObjInfo[idx][oRZ]; ObjInfo[idx][oX] = ObjInfo[idx][oX] + 2; ObjInfo[idx][oY] = ObjInfo[idx][oY] + 2; ObjInfo[idx][oRX] = 0; ObjInfo[idx][oRY] = 0; ObjInfo[idx][oRZ] = 0; // Creating format(string, sizeof(string), "Object ID: %d (Model ID: %d)", idx, ObjInfo[idx][oModel]); ObjInfo[idx][obj] = CreateDynamicObject(ObjInfo[idx][oModel], ObjInfo[idx][oX], ObjInfo[idx][oY], ObjInfo[idx][oZ], ObjInfo[idx][oRX], ObjInfo[idx][oRY], ObjInfo[idx][oRZ]); ObjInfo[idx][oText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, ObjInfo[idx][oX], ObjInfo[idx][oY], ObjInfo[idx][oZ], 10); // Text format(string, sizeof(string), "MapperWarn: %s has created object ID %d. (Object: %d)", RPN(playerid), idx, object); SendMapperMessage(COLOR_GREEN, 1, string); Log("logs/cbject.log", string); idx = MAX_OBJ; } } return 1; }
Whirlpool.so sscanf.so streamer.so
#include <a_samp> #include <a_players> #include <dini> #include <dudb> #include <dutils> #include <foreach> #include <sscanf2> #include <zcmd> #include <streamer> #include <OPSP> #include <progress> #include <yom_buttons> #include <gvc>
[21:48:10] Incoming connection: 84.195.92.26:52870 [21:48:10] [join] Bart_Micheals has joined the server (0:**.**.***.**) [21:48:11] [debug] Run time error 4: "Array index out of bounds" [21:48:11] [debug] Accessing element at index 9 past array upper bound 8 [21:48:11] [debug] AMX backtrace: [21:48:11] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:11] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:12] [debug] Run time error 4: "Array index out of bounds" [21:48:12] [debug] Accessing element at index 9 past array upper bound 8 [21:48:12] [debug] AMX backtrace: [21:48:12] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:12] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:12] DIALOG TEST. DIALOG 2 REQUEST CLASS [21:48:12] DIALOG TEST. [21:48:12] DIALOG TEST. [21:48:13] [debug] Run time error 4: "Array index out of bounds" [21:48:13] [debug] Accessing element at index 9 past array upper bound 8 [21:48:13] [debug] AMX backtrace: [21:48:13] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:13] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:14] [debug] Run time error 4: "Array index out of bounds" [21:48:14] [debug] Accessing element at index 9 past array upper bound 8 [21:48:14] [debug] AMX backtrace: [21:48:14] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:14] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:14] Character file loaded successfuly. [21:48:15] [debug] Run time error 4: "Array index out of bounds" [21:48:15] [debug] Accessing element at index 9 past array upper bound 8 [21:48:15] [debug] AMX backtrace: [21:48:15] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:15] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:16] [debug] Run time error 4: "Array index out of bounds" [21:48:16] [debug] Accessing element at index 9 past array upper bound 8 [21:48:16] [debug] AMX backtrace: [21:48:16] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:16] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:17] [debug] Run time error 4: "Array index out of bounds" [21:48:17] [debug] Accessing element at index 9 past array upper bound 8 [21:48:17] [debug] AMX backtrace: [21:48:17] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:17] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx [21:48:18] [debug] Run time error 4: "Array index out of bounds" [21:48:18] [debug] Accessing element at index 9 past array upper bound 8 [21:48:18] [debug] AMX backtrace: [21:48:18] [debug] #0 001a1c20 in ?? (0x00000000) from VG-RP.amx [21:48:18] [debug] #1 0019db4c in public NOPSetPlayerPos () from VG-RP.amx
A run time error 19 in NOPSetPlayerPos callback.
Compiling your scripts with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info may print the exact line caused it so give it a try, re-compile and try again. If the debug information are not the same as above (the line is shown etc.), post the new information and the NOPSetPlayerPos callback. Otherwise it doesn't print the line, we should find it in the NOPSetPlayerPos callback by ourselves. |
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 20172 bytes Code size: 2231156 bytes Data size: 13888640 bytes Stack/heap size: 16384 bytes; estimated max. usage=3628 cells (14512 bytes) Total requirements:16156352 bytes
Okay, you've successfully compiled with debug info. It should print the line caused the run time error 4 the next time (in the server log). Those are the information I need to fix it and the NOPSetPlayerPos callback.
|
[22:41:15] *** CreateDynamicObject: Expecting 12 parameter(s), but found 11
None showed.