Dialog issue (Minor question)
#1

Hello everyone.
I have a minor problem with a doalog in a login/register system in my gamemode.
It works almost fine, when the player joins the server first time, it asks him to register.
If he is leaving the server, and connecting again, it asks for his password. Thats all great...
BUT if he types a wrong password, the dialog just disappears, and he is able to spawn.

If someone would be kind and take a look at it, i would be very happy.
You can see it here: http://pastebin.com/wrvcZb7h (Just ignore that Pastebin made my includes and defines green)
Its also attached below, if you wanna download it in stead.
Btw; its a gamemode. (The beginning of it).

Hope you can help me. Thank you very much.
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "<SERVERNAVN> Account", "Enter your password", "Login", "Quit");
dialogid should be 2

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "<SERVERNAVN> Account", "Enter your password", "Login", "Quit");
Reply
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "<SERVERNAVN> Account", "Enter your password", "Login", "Quit");
dialogid should be 2

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "<SERVERNAVN> Account", "Enter your password", "Login", "Quit");
Thank you very much. It works now
I forgot all about those IDs, cus i just copy/pasted the line xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)