PHP код:
case DIALOG_REGISTRAZIONE:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTRAZIONE, DIALOG_STYLE_INPUT,""COL_WHITE"Registrazione...",""COL_RED"Hai inserito una password errata.\n"COL_WHITE"Inserisci una password per creare un account.","Registrati","Esci");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Soldi",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Uccisioni",0);
INI_WriteInt(File,"Morti",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESSO_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Sei loggato!",""COL_GREEN"Buono! Il Sistema Y_INI funziona corettamente. Rilogga per aggiornare il tuo stato!","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
{
INI_ParseFile(UserPath(playerid, "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pSoldi]);
ShowPlayerDialog(playerid, DIALOG_SUCCESSO_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Successo!",""COL_GREEN"Sei loggato!","Ok","");
You have 2 dialogs (3 actually in total but 2 are duplicate in your case) in the enumerator as I had told you in a previous thread of yours and you added some code but you used #define DIALOG_... and they use the same dialog IDs. In order to solve this, you will need to add the two new dialogs to the enumerator along with the rest.