: error 035: argument type mismatch (argument 3)
#1

pawn Код:
CMD:changepassword(playerid, params[])
{
    new string[128], string1[32], password[32];
    if(sscanf(params, "s[32]", password)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changepassword [new password]");
   
    format(string, sizeof(string), "You have changed your password to %s, effect starts from now.", password);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    new INI:File = INI_Open(UserSavePath(playerid));
    INI_WriteInt(File, "Password", password);
    INI_Close(File);
    return 1;
}
Error line:
INI_WriteInt(File, "Password", password);

thank you, rep
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 8 Guest(s)