28.02.2010, 09:16
Code:
if(dialogid == 12) { new file[128], pname[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(file), "\\Users\\%s.ini", pname); dini_IntSet(file, "Password", udb_hash(inputtext)); format(string,128,"[Saved]: Your new password has been saved. PW: %d",strval(inputtext)); SendClientMessage(playerid,GREEN,string); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); return 1; }