SA-MP Forums Archive
Really? What is this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Really? What is this (/showthread.php?tid=532848)



Really? What is this - JessThompson - 20.08.2014

[23:40:19] [Command Used] [Jesse Brook]: /givemoney 0 10
[23:40:19] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[23:40:19] [debug] Stack pointer (STK) is 0x2469DF0, heap pointer (HEA) is 0x2469DB4
[23:40:19] [debug] AMX backtrace:
[23:40:19] [debug] #0 00423d38 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #1 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #2 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #3 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #4 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #5 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #6 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #7 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #8 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #9 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #10 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #11 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #12 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #13 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #14 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #15 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #16 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #17 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #18 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #19 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #20 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #21 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #22 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #23 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #24 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #25 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #26 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #27 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #28 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #29 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #30 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #31 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #32 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #33 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #34 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #35 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #36 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #37 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #38 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #39 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #40 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #41 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #42 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #43 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #44 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #45 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #46 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #47 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #48 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #49 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #50 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #51 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #52 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #53 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #54 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #55 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #56 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #57 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #58 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #59 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #60 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #61 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #62 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #63 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #64 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #65 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #66 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #67 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #68 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #69 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #70 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #71 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #72 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #73 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #74 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #75 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #76 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #77 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #78 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #79 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #80 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #81 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #82 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #83 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #84 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #85 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #86 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #87 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #88 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #89 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #90 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #91 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #92 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #93 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #94 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #95 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #96 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #97 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #98 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #99 00423dc4 in ?? (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #100 00423dc4 in public cmd_givemoney (0x00000000, 0x0000000a) from UGRP.amx
[23:40:19] [debug] #101 native CallLocalFunction () [080dce40] from samp03svr
[23:40:19] [debug] #102 0000c37c in public OnPlayerCommandText (0x00000000, 0x02469d60) from UGRP.amx


Re: Really? What is this - AdHaM612 - 12.10.2014

Press Ctrl+F then type "CMD:givemoney" or "COMMAND:givemoney" then paste it here.


Re: Really? What is this - Vince - 12.10.2014

Memory corrupted. I hardly think the function itself has anything to do with it. Probably an unlucky coincidence. Did you get the "code size" box during compilation? If so, that's where your mistake is.

The script is using more memory than what was allocated for, resulting in stack corruption. In layman's terms this means data gets overwritten with other, unrelated, data, which leads to a crash.


Re: Really? What is this - TakeiT - 12.10.2014

You need more ram, or, as in Emmet_'s tutorial on runtime errors:

Quote:

Runtime error 3
Your script has apparently ran out of local memory. The stack is where any local variables are allocated and stored, in terms of memory. This means that the stack and the heap are colliding with each other, which could effectively corrupt data in the long run.

Solution: Try to use less cells for local declaration. For example, huge strings can be declared using "static" so it isn't allocated every function call. Alternatively, there's "#pragma dynamic x" but that's only if you're lazy.