05.04.2014, 14:17
Hello, im creating register system and something went wrong, when I want to set password from gui inputtext it just deletes first letter and send output like if my password would be test, it would set password est.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_REGISTER) { if(response) { if(strlen(inputtext[DIALOG_REGISTER]) < 6 || strlen(inputtext[DIALOG_REGISTER]) > 16) return SendClientMessage(playerid,-1,"[KLAIDA]: slaptaюodis turi bыti ilgesnis nei рeрi simboliai ir trumpesnis nei 16."); else { new password = inputtext[DIALOG_REGISTER]; new failas[256]; new vardas[MAX_PLAYER_NAME]; GetPlayerName(playerid,vardas,sizeof(vardas)); format(failas,sizeof(failas),"Vartotojai/%s.ini",vardas); dini_Create(failas); dini_Set(failas,"Slaptazodis",password); } } } return 1; }