16.07.2011, 21:25
i have this error msg and still don't know why i have it
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 1)
Код:
CMD:changepass(playerid, params[]) { new file[128]; format(file, 128, USER_FILE, GetPName(playerid)); new OldPass, NewPass; if(sscanf(params, "ss", OldPass, NewPass)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /changepass (password) (new password)"); if(OldPass == NewPass) return SendClientMessage(playerid, COLOR_RED, "ERROR: You typed same password"); dini_IntSet(file, "Password", udb_hash(NewPass)); SendClientMessage(playerid, COLOR_RED, "You have changed your password."); return 1; }