Jump to content
  • 0

foreach [NE REZOLVAT]


Alexandru Alex

Question

Salut, am bagat pe gamemode-ul meu foreach si serverul cand il deschid imi da crash incontinu.

[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 00403334 in ?? () in samp-server.exe
[debug] #1 00403684 in ?? () in samp-server.exe
[debug] #2 004912c7 in ?? () in samp-server.exe
[debug] #3 0048d4db in ?? () in samp-server.exe
[debug] #4 0049b4a1 in ?? () in samp-server.exe
[debug] #5 0049b4b1 in ?? () in samp-server.exe
[debug] Registers:
[debug] EAX: 00003478 EBX: 00000000 ECX: 00001242 EDX: 02b796f8
[debug] ESI: 02cc87a0 EDI: 00000061 EBP: 0049b4a1 ESP: 0019fe88
[debug] EIP: 0049b4b1 EFLAGS: 00010297
[debug] Stack:
[debug] ESP+00000000: 004ab4a0 0019ff60 004ab0e1 ffffffff
[debug] ESP+00000020: 00000094 00000006 00000002 000023f0
[debug] ESP+00000040: 00000000 00000000 00000000 00000000
[debug] ESP+00000060: 00000000 00000000 00000000 00000000
[debug] ESP+00000080: 00000000 00000000 00000000 00000000
[debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[debug] ESP+000000c0: 00000000 00000000 c0000005 00000000
[debug] ESP+000000e0: 004ba530 00000000 0019ff80 74bf0419
[debug] ESP+00000100: 0020e000 bc9dfd4c 00000000 00000000
[debug] ESP+00000120: 00000000 00000000 00000000 00000000
[debug] ESP+00000140: 00000000 0019ffe4 772e86e0 cbb39050
[debug] ESP+00000160: 772f51c1 00000000 00000000 0049cb3a
[debug] ESP+00000180: 00000001 00003334 000000dc 00000000
[debug] ESP+000001a0: 00000007 00000034 0000017c 00000001
[debug] ESP+000001c0: 00000000 00000002 1a26ef4e 00000298
[debug] ESP+000001e0: f33271ba 00000540 0000004a 0000058c
[debug] ESP+00000200: 00000032 00000908 00000300 00000000
[debug] ESP+00000220: 00000336 00000000 38505fc8 00000f84
[debug] ESP+00000240: b1280544 0000134c 00000056 000013a4
[debug] ESP+00000260: 00000002 00000001 0000017c 000015f8
[debug] ESP+00000280: 00000001 00000003 00001f14 00000e8c
[debug] ESP+000002a0: 00000002 00000005 000030b4 00000098
[debug] ESP+000002c0: 00000002 00000007 00003218 000000f0
[debug] ESP+000002e0: 00000002 0000000b 00003330 00000004
[debug] ESP+00000300: 00000001 00000001 00000006 0000008c
[debug] ESP+00000320: 0000005e 00000000 00000000 00000000
[debug] ESP+00000340: 00000000 00000000 00000002 00000024
[debug] ESP+00000360: 006e0069 006f0064 00730077 0057005c
[debug] ESP+00000380: 1a26ef4e 0000011c 00000044 00000164
[debug] ESP+000003a0: 0000004a 00000410 00000348 00000002
[debug] ESP+000003c0: 00000300 00000003 32ceeacd 00000a8c
[debug] ESP+000003e0: 38505fc8 00000e08 0000005e 00000e68
[debug] Loaded modules:
[debug] 00400000 - 00519000 samp-server.exe
[debug] 77270000 - 7740c000 ntdll.dll
[debug] 74bd0000 - 74cb0000 KERNEL32.DLL
[debug] 756f0000 - 758ea000 KERNELBASE.dll
[debug] 75e60000 - 763b3000 SHELL32.dll
[debug] 74eb0000 - 74f70000 msvcrt.dll
[debug] 75bb0000 - 75beb000 cfgmgr32.dll
[debug] 75bf0000 - 75d12000 ucrtbase.dll
[debug] 753b0000 - 75439000 shcore.dll
[debug] 76980000 - 76a3f000 RPCRT4.dll
[debug] 748d0000 - 748f0000 SspiCli.dll
[debug] 748c0000 - 748ca000 CRYPTBASE.dll
[debug] 749e0000 - 74a42000 bcryptPrimitives.dll
[debug] 75440000 - 754b9000 sechost.dll
[debug] 74fa0000 - 75217000 combase.dll
[debug] 76a90000 - 7708e000 windows.storage.dll
[debug] 75a90000 - 75b10000 msvcp_win.dll
[debug] 75b30000 - 75bae000 advapi32.dll
[debug] 756c0000 - 756dc000 profapi.dll
[debug] 75660000 - 756b4000 powrprof.dll
[debug] 76a40000 - 76a84000 shlwapi.dll
[debug] 752b0000 - 752d3000 GDI32.dll
[debug] 763c0000 - 76526000 gdi32full.dll
[debug] 74d10000 - 74ea9000 USER32.dll
[debug] 752e0000 - 752f7000 win32u.dll

si am crash detecotr

Edited by Alexandru Alex
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
La 29.05.2020 la 20:44, Alexandru Alex a spus:

Salut, am bagat pe gamemode-ul meu foreach si serverul cand il deschid imi da crash incontinu.


[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 00403334 in ?? () in samp-server.exe
[debug] #1 00403684 in ?? () in samp-server.exe
[debug] #2 004912c7 in ?? () in samp-server.exe
[debug] #3 0048d4db in ?? () in samp-server.exe
[debug] #4 0049b4a1 in ?? () in samp-server.exe
[debug] #5 0049b4b1 in ?? () in samp-server.exe
[debug] Registers:
[debug] EAX: 00003478 EBX: 00000000 ECX: 00001242 EDX: 02b796f8
[debug] ESI: 02cc87a0 EDI: 00000061 EBP: 0049b4a1 ESP: 0019fe88
[debug] EIP: 0049b4b1 EFLAGS: 00010297
[debug] Stack:
[debug] ESP+00000000: 004ab4a0 0019ff60 004ab0e1 ffffffff
[debug] ESP+00000020: 00000094 00000006 00000002 000023f0
[debug] ESP+00000040: 00000000 00000000 00000000 00000000
[debug] ESP+00000060: 00000000 00000000 00000000 00000000
[debug] ESP+00000080: 00000000 00000000 00000000 00000000
[debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[debug] ESP+000000c0: 00000000 00000000 c0000005 00000000
[debug] ESP+000000e0: 004ba530 00000000 0019ff80 74bf0419
[debug] ESP+00000100: 0020e000 bc9dfd4c 00000000 00000000
[debug] ESP+00000120: 00000000 00000000 00000000 00000000
[debug] ESP+00000140: 00000000 0019ffe4 772e86e0 cbb39050
[debug] ESP+00000160: 772f51c1 00000000 00000000 0049cb3a
[debug] ESP+00000180: 00000001 00003334 000000dc 00000000
[debug] ESP+000001a0: 00000007 00000034 0000017c 00000001
[debug] ESP+000001c0: 00000000 00000002 1a26ef4e 00000298
[debug] ESP+000001e0: f33271ba 00000540 0000004a 0000058c
[debug] ESP+00000200: 00000032 00000908 00000300 00000000
[debug] ESP+00000220: 00000336 00000000 38505fc8 00000f84
[debug] ESP+00000240: b1280544 0000134c 00000056 000013a4
[debug] ESP+00000260: 00000002 00000001 0000017c 000015f8
[debug] ESP+00000280: 00000001 00000003 00001f14 00000e8c
[debug] ESP+000002a0: 00000002 00000005 000030b4 00000098
[debug] ESP+000002c0: 00000002 00000007 00003218 000000f0
[debug] ESP+000002e0: 00000002 0000000b 00003330 00000004
[debug] ESP+00000300: 00000001 00000001 00000006 0000008c
[debug] ESP+00000320: 0000005e 00000000 00000000 00000000
[debug] ESP+00000340: 00000000 00000000 00000002 00000024
[debug] ESP+00000360: 006e0069 006f0064 00730077 0057005c
[debug] ESP+00000380: 1a26ef4e 0000011c 00000044 00000164
[debug] ESP+000003a0: 0000004a 00000410 00000348 00000002
[debug] ESP+000003c0: 00000300 00000003 32ceeacd 00000a8c
[debug] ESP+000003e0: 38505fc8 00000e08 0000005e 00000e68
[debug] Loaded modules:
[debug] 00400000 - 00519000 samp-server.exe
[debug] 77270000 - 7740c000 ntdll.dll
[debug] 74bd0000 - 74cb0000 KERNEL32.DLL
[debug] 756f0000 - 758ea000 KERNELBASE.dll
[debug] 75e60000 - 763b3000 SHELL32.dll
[debug] 74eb0000 - 74f70000 msvcrt.dll
[debug] 75bb0000 - 75beb000 cfgmgr32.dll
[debug] 75bf0000 - 75d12000 ucrtbase.dll
[debug] 753b0000 - 75439000 shcore.dll
[debug] 76980000 - 76a3f000 RPCRT4.dll
[debug] 748d0000 - 748f0000 SspiCli.dll
[debug] 748c0000 - 748ca000 CRYPTBASE.dll
[debug] 749e0000 - 74a42000 bcryptPrimitives.dll
[debug] 75440000 - 754b9000 sechost.dll
[debug] 74fa0000 - 75217000 combase.dll
[debug] 76a90000 - 7708e000 windows.storage.dll
[debug] 75a90000 - 75b10000 msvcp_win.dll
[debug] 75b30000 - 75bae000 advapi32.dll
[debug] 756c0000 - 756dc000 profapi.dll
[debug] 75660000 - 756b4000 powrprof.dll
[debug] 76a40000 - 76a84000 shlwapi.dll
[debug] 752b0000 - 752d3000 GDI32.dll
[debug] 763c0000 - 76526000 gdi32full.dll
[debug] 74d10000 - 74ea9000 USER32.dll
[debug] 752e0000 - 752f7000 win32u.dll

si am crash detecotr

In ce functii sau conditii folosesti foreach? Ce versiune folosesti? Serverul e hostat sau localhost? Da-ne daca poti mai multe detalii despre problema ta.

Link to comment
Share on other sites

  • 0

stock ProxDetector(playerid, color, string[], Float: distance = 15.0)
{
    new Float: Coords[3];
    GetPlayerPos(playerid, Coords[0], Coords[1], Coords[2]);

    foreach(Player,i)
    {
        if(IsPlayerInRangeOfPoint(i, distance, Coords[0], Coords[1], Coords[2]) && (GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))) {
            SCM(i, color, string);
        }
    }
    return 1;
}

Edited by Alexandru Alex
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.