SA-MP Forums Archive
Crashing menu spam (Crash detect plugin installed) - 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: Crashing menu spam (Crash detect plugin installed) (/showthread.php?tid=449477)



Crashing menu spam (Crash detect plugin installed) - notshowbiz - 09.07.2013

Here's the deal
I made a dialog menu

I made it so that every time an object is selected in the menu, the menu does not disappear
You're able to literally tap enter a million times and keep using it

But, it crashes after like ~10-20 simultaneous taps.
Which quite frankly is pretty sad if that's flooding my server.

I installed the crash detect plugin and continued to sift through and remove some junk code that the crasher did announce, but still no luck, if anything it just made it so I was able to tap it an extra 5-10 times before crashing.

Is this an error in my code or is it just a general SA-MP flood?
Regardless, anyone got an idea on how I can fix this?
Is there some way to add a flood cooldown on dialog menus that will be called before the crash itself??


Re: Crashing menu spam (Crash detect plugin installed) - ReV. - 09.07.2013

You can limit the use of the dialog by using a variable and a timer, or GetTickCount rather.