19.06.2016, 08:09
Everything works perfectly but when I connect I want to say that is wrong password. What is wrong with the script?
Код HTML:
if(dialogid == REGISTER) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_PASSWORD, "{FFFF00}Inregistrare", "{FF0000}Trebuie sa va inregistrati", "Register", "Inchide"); if(!response) return Kick(playerid); if(response) { new INI:File = INI_Open(User(playerid)); INI_WriteInt(File, "Password", udb_hash(inputtext)); INI_Close(File); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0x00FF00FF, "Te-ai inregistrat cu succes !"); new String[256], Name[MAX_PLAYER_NAME], dd, mm, yy, h, m; GetPlayerName(playerid, Name, sizeof(Name)); getdate(yy, mm, dd); gettime(h, m); format(String, sizeof(String), "{FFFFFF}Nume: {FFFF00}%s\n{FFFFFF}Data: {FFFF00}%02d/%02d/%02d\n{FFFFFF}Ora: {00FF00}%02d:%02d\n{FFFFFF}Parola: {FFFF00}%s\n{00773C}Apasa butonul 'F8' pentru a face o captura a ecranului.", Name, dd, mm, yy, h, m, inputtext); ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{00FF00}Informatii inregistrare.", String, "Ok", ""); DestroyRegistrationMenu(playerid); } }