Easy Dialog not responding in filterscript
#1

I'm trying to make a dialog for my filterscript with the EasyDialog include, but for some reason the dialog's are not responding to anything.

This is the code that shows the dialog, it works fine
PHP код:
Dialog_Show(playeridmapsDIALOG_STYLE_LIST"Maps""1. Create a new map\n\
                                                        2. Delete a map\n\
                                                        3. Edit a map\n"
"Select"""); 
But this code should process input, but it doesn't respond to anything
PHP код:
Dialog:maps(playeridresponselistiteminputtext[])
{
    
printf("inputtext = %s | listitem = %i"inputtextlistitem);

Reply
#2

Did you load any include after you included easyDialog?
Reply
#3

Are you sure you don't have another dialog called maps?

Also, try doing it in a filterscript and see if it works there, it might be a unknown bug? Also what compiler are you using? SA-MP Compiler or Zeex's one?
Reply
#4

Quote:
Originally Posted by X337
Посмотреть сообщение
Did you load any include after you included easyDialog?
I tried to load it as first and as last include, but it still doesn't work?


Quote:
Originally Posted by azzerking
Посмотреть сообщение
Are you sure you don't have another dialog called maps?

Also, try doing it in a filterscript and see if it works there, it might be a unknown bug? Also what compiler are you using? SA-MP Compiler or Zeex's one?
100% sure if even tried change the name.

It is a filterscript, that's probably why it's not working, but how do I fix it?
i'm using samp comiler (pawncc.exe)
Reply
#5

Alright so I kinda found a solution. It has to be the first filterscript in my server.cfg file.
What is causing this and how can I prevent it?

EDIT: I found out that a filterscript that's loaded before mine in server.cfg was using the regular dialogs, which interfered with EasyDialog
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)