DialogHider.cs (Dialog Hack)
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Assign the dialog id to the variable rather than just 0 or 1. Then you can compare it directly in OnDialogResponse which provides an extra layer of protection, i.e.:
PHP код:
if(PlayerInfo[playerid][pDialogOpen] != dialogid
Do you mean showing a player dialog ID 1 and receiving response from dialog ID 2? I thought SA-MP server is already protected against invalid dialogid responses by itself, no?

Quote:
Originally Posted by wallee
Посмотреть сообщение
This is nothing new, but nice of you to warn us.
Well, it was definitely new for me and it was killing the server. Just wanted to give my 2 cents on how to overcome this.
Reply


Messages In This Thread
DialogHider.cs (Dialog Hack) - by Shetch - 20.01.2017, 08:50
Re: DialogHider.cs (Dialog Hack) - by wallee - 20.01.2017, 09:08
Re: DialogHider.cs (Dialog Hack) - by Vince - 20.01.2017, 09:21
Re: DialogHider.cs (Dialog Hack) - by Shetch - 20.01.2017, 09:46
Re: DialogHider.cs (Dialog Hack) - by Lordzy - 20.01.2017, 09:57
Re: DialogHider.cs (Dialog Hack) - by PrO.GameR - 20.01.2017, 09:57
Re: DialogHider.cs (Dialog Hack) - by Vince - 20.01.2017, 10:13
Re: DialogHider.cs (Dialog Hack) - by Sgt.TheDarkness - 20.01.2017, 13:54
Re: DialogHider.cs (Dialog Hack) - by Shetch - 20.01.2017, 14:53
Re: DialogHider.cs (Dialog Hack) - by Lordzy - 20.01.2017, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)