Crashing menu spam (Crash detect plugin installed)
#1

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??
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)