[Help] Dialog Bug? An other bug?
#1

Hi all,

today i need help.

I use lot's of system with dialog, and sometime, i think it's bugging

i curently have 134 dialog.

So here is an exemple.

I use dialog to rename, so i enter my new nickname and have to click on confirm.

It have to show me an another dialog who ask me if i am sure that i want to rename with this nick.

Usualy it work, but sometime, the second dialog don't show ( it appear for some system where i have to show second dilog after the first )

Do you know Why?



Also i don't know why, but another system bug.

When an player connect, in onplayerrequestclass, i check if account already exist.

If doesn't exist, i check if the player ips is registered 3 time.

If its the case, i kick him and say you have to much account.

If it isn't i ask him if he want to register.

Yesterday i connect, i have more than 3 time my ip registered, so it have to kick me, but nothing happend, i got an message "lose connection, try reconnecting" like if server shut down, after some sec i got reconnected and after another time the message and so and so.

But never the server shut down or restart, just for me.

Thank you

Max
Reply
#2

Up?

Max
Reply
#3

Do some one could help me?

Max
Reply
#4

not sure why too. but it hink it's because you put return 1; on the ondialogresponse callback
https://sampwiki.blast.hk/wiki/OnDialogResponse
it say : "Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback."

you must put return 0; on the ondialogresponse callback
Reply
#5



Excuse me, but i am not the best into english, cold you explain me the meanin of this sentense?

Max
Reply
#6

If you're using a filterscript, return false/0 in OnDialogResponse callback.
If you're using a gamemode, return true/1 in OnDialogResponse callback.
Reply
#7

I am not using flitersrcipts,

so itisn't an return problem?

Max
Reply
#8

Do somme one have solution?

Max
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)