11.10.2009, 18:18
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new file[256]; new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(file, sizeof(string), "\\Users\\%s.ini", pname); if(dialogid == 1) { if(response) { new tmp[256]; tmp = dini_Get(file, "hashPW"); if(!dini_Exists(file)) { SendClientMessage(playerid, COLOR_RED, "You are not registered! [KICK]"); Kick(playerid); } else if(udb_hash(inputtext) != strval(tmp)) { format(string, 256, "Wrong Password For %s!", GetPlayerNameEx(playerid)); SendClientMessage(playerid, COLOR_YELLOW2, string); } else { //Codes if(!response) { // Codes } } } } } return 1; }