11.08.2018, 22:08
Today I learned but I also almost lost my mind trying to figure what I was doing wrong before I finally realized the fuckup.
a.pwn
b.pwn
I was wondering why everytime I was handling a response of D_CLICKEDPLAYER, I'd get a popup with the authentication (specifically, D_LOGIN) dialog. Didn't take me ages to figure out the fuckup, but I was losing my mind over something as simple as this. The most obvious solution (and the only one I could think of) is to keep the dialogs in an unique file.
a.pwn
pawn Код:
enum {
D_LOGIN,
D_REGISTER
}
// Handle response with OnDialogResponse hook
pawn Код:
enum {
D_CLICKEDPLAYER
}
// Handle response with OnDialogResponse hook