Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid==DIALOGLOGIN)
- {
- new nome[25];
- new stringa[250];
- if(!response ) return Kick(playerid); //Kicka il player che non si logga
- GetPlayerName(playerid,nome,sizeof(nome));
- format(stringa,sizeof(stringa),"Utenti/%s",nome);
- new Pass[250]; // <---------- Riga che ha l'errore
- Pass=dini_Get(stringa,"Password");
- if(strcmp(Pass,inputtext,true) || !strlen(inputtext)) //Controlla se la password è corretta
- {
- ShowPlayerDialog(playerid,DIALOGLOGIN,DIALOG_STYLE_INPUT,"Login","PASSWORD ERRATA \nInserisci lapassword per loggarti","Login","");
- return 1;
- }
- Giocatore[playerid][Livello]=dini_Int(stringa,"Livello"); //Qui carica i dati del giocatore
- Giocatore[playerid][Morti]=dini_Int(stringa,"Morti");
- Giocatore[playerid][Uccisioni]=dini_Int(stringa,"Uccisioni");
- Giocatore[playerid][Loggato]=1; //Ci servirà per quando si disconnetterà
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement