20.01.2017, 09:21
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)