Advertisement
MichaelFR

Untitled

Apr 10th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. CMD:passwordigraca(playerid,params[])
  2. {
  3. new ime[40];
  4. new acc[40];
  5. new password[60];
  6. new string[128];
  7. new pom;
  8. if(sscanf(params, "s[30]s[30]", ime,password)) return SCM(playerid,-1, "/passwordigraca [Nick] [Novi Password]");
  9. format(acc,30,"/Korisnici/%s.ini",ime);
  10. pom = udb_hash(password);
  11. if(!fexist(acc)) return SCM(playerid, -1, "Taj nick ne postoji!");
  12. new INI:iniFile = INI_Open(acc);
  13. INI_WriteInt(iniFile,"Lozinka",pom);
  14. INI_Close(iniFile);
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement