26.06.2013, 15:29
try this dude
Код:
CMD:password(playerid,params[]) { new Old[32],New[32],string[128]; if(sscanf(params, "ss", old,new)) return SendClientMessage(playerid, CO_IVORY, "Command: /passowrd old new"); else if(strlen(old) != pInfo[playerid][Your Pass Variable])) return SendClientMessage(playerid, CO_IVORY, "The old password is incorrect"); else if(strlen(old) < 4 || strlen(old) > 32) return SCM(message with characters 4 - 10); else if(strlen(old) == strlen(new)) SCM(message with old is new); else { new INI:File = INI_Open(YourPath(playerid)); INI_SetTag(File,"Player Info"); INI_WriteInt(File,"Password",new); INI_Close(File); } return 1; }