Advertisement
Parix

mammt

Aug 31st, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.89 KB | None | 0 0
  1.     if(dialogid==DIALOGLOGIN)
  2.     {
  3.     new nome[25];
  4.     new stringa[250];
  5.     if(!response ) return Kick(playerid); //Kicka il player che non si logga
  6.     GetPlayerName(playerid,nome,sizeof(nome));
  7.     format(stringa,sizeof(stringa),"Utenti/%s",nome);
  8.     new Pass[250];  // <---------- Riga che ha l'errore
  9.     Pass=dini_Get(stringa,"Password");
  10.     if(strcmp(Pass,inputtext,true) || !strlen(inputtext)) //Controlla se la password è corretta
  11.     {
  12.     ShowPlayerDialog(playerid,DIALOGLOGIN,DIALOG_STYLE_INPUT,"Login","PASSWORD ERRATA \nInserisci lapassword per loggarti","Login","");
  13.     return 1;
  14.     }
  15.     Giocatore[playerid][Livello]=dini_Int(stringa,"Livello"); //Qui carica i dati del giocatore
  16.     Giocatore[playerid][Morti]=dini_Int(stringa,"Morti");
  17.     Giocatore[playerid][Uccisioni]=dini_Int(stringa,"Uccisioni");
  18.     Giocatore[playerid][Loggato]=1; //Ci servirà per quando si disconnetterà
  19.     }
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement