Ryso 0 Odesláno: 29. Srpen, 2010 Share Odesláno: 29. Srpen, 2010 Chcem spravit, ze hrac moze pri registracii cez dialog pouzit len znaky z PasswordChars[]: new PasswordChars[] = { "A","B","C","D","E","F","G","H","I","J","K","L","M", "N","O","P","Q","R","S","T","U","V","W","X","Y","Z", "a","b","c","d","e","f","g","h","i","j","k","l","m", "n","o","p","q","r","s","t","u","v","w","x","y","z", "0","1","2","3","4","5","6","7","8","9" }; stock PasswordExceptions(string[]) { for(new i=0; i<63; i++) { if(!strfind(string,PasswordChars[i],true) != -1) return true; // warning 213: tag mismatch } return false; } v OnDialogResponse: if(PasswordExceptions(inputtext)) { SendClientMessage(playerid,COLOR_RED,"Heslo môže obsahovať len písmená a čísla!"); } avsak pise to warning Link to comment Share on other sites More sharing options...
0 Duch 0 Odesláno: 29. Srpen, 2010 Share Odesláno: 29. Srpen, 2010 A co takto ten warning aj vypisat nemam cas si to ted dakam vkladat Link to comment Share on other sites More sharing options...
0 Ryso 0 Odesláno: 29. Srpen, 2010 Author Share Odesláno: 29. Srpen, 2010 Keby si si to cele precital, vsimol by si si, ze som ten warning vlozil do 'Code' priamo do riadku, kam to ten warning vyhadzuje. Link to comment Share on other sites More sharing options...
Dotaz
Ryso 0
Chcem spravit, ze hrac moze pri registracii cez dialog pouzit len znaky z PasswordChars[]:
avsak pise to warning
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now