Dialog boxes arent working
#1

Okay so my dialog boxes arent working for some reason none of the IDs are the same. the "return" should be "return 0;" under "ondialogresponse" on my gamemode right? then what should it be for my filterscripts?
Reply
#2

If you check the samp wiki tutorial of OnDialogResponse:
pawn Код:
}
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
 
    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
I think it should be exact the same with filterscripts? Post your code so we can check it ourself.
Reply
#3

Quote:
Originally Posted by NL-Sultan
Посмотреть сообщение
If you check the samp wiki tutorial of OnDialogResponse:
pawn Код:
}
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
 
    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
I think it should be exact the same with filterscripts? Post your code so we can check it ourself.
Oh god... I'm so oblivious, I had all of my scripts set to "return 1;" on the bottom.
Reply
#4

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
Oh god... I'm so oblivious, I had all of my scripts set to "return 1;" on the bottom.
Haha, alright.
I'm glad you fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)