11.03.2015, 16:15
Quote:
I just want to ask, how can i insert IF, for password length. For example from 3 to 15 characters, thank you guys!
|
Код:
CMD:changepw(playerid, params[]) { if(!params[0]) return SendClientMessage(playerid,-1,"Please enter a password!"); if(!(2 < strlen(params) < 16)) return SendClientMessage(playerid,-1,"Your password must be longer then 3 and smaller then 15 chars!"); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Password",udb_hash(params)); INI_Close(File); return SendClientMessage(playerid,-1,"Password changed successfully!"); }