12.01.2015, 13:39
When i connect to my server i don't see any register dialog.
case DIALOG_REGISTER: { if(response) { if(!IsPlayerNPC(playerid)) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, " Registering...",""RED_"You have entered an invalid password.\n"WHITE_"Type your password below to register a new account.","Register",""); OnPlayerRegister(playerid, inputtext); } } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, " Registering...",""RED_"You have entered an invalid password.\n"WHITE_"Type your password below to register a new account.","Register",""); } }/* case DIALOG_REGISTER2: { if(response) { if(!IsPlayerNPC(playerid)) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, " Registering...",""RED_"You have entered an invalid password.\n"WHITE_"Type your password below to register a new account.","Register",""); OnPlayerRegister(playerid, inputtext); } } }*/
CMD:register(playerid) { if(GetPVarInt(playerid,"LOGGED") != 2) return SendClientMessage(playerid,RED," "RED_"» Error « {BABABA}You are already registered"); ShowPlayerDialog(playerid, DIALOG_REGISTER2, DIALOG_STYLE_PASSWORD,""LIGHTRED_"Register To The Server" ,"Your Name is not registered in our database\n\n"WHITE_"Enter your password below to register a new account:", "Register","Register Later"); return 1; }