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

You're using ini write string while udb_hash return value is integer.

PHP Code:
CMD:changepass(playeridparams[])
{
    new 
player[MAX_PLAYER_NAME],string[256]; // the player name, // and the string for the path
    
if(sscanf(params"s[256]"params))return SendClientMessage(playerid, -1"/changepassword [password]");//sscanf, what ever u write after /change
    
GetPlayerName(playeridplayerMAX_PLAYER_NAME);
    
format(string256"Users/%s.ini"player);//put ur ini path here but keep the player
    
new INI:file INI_Open(string); // opening the path
    //INI_WriteString(file,  "Password", udb_hash(params));//writing in the path
    
INI_WriteInt(file"Password"udb_hash(params));
    
INI_Close(file);// close the file
    
return 1;


Reply


Messages In This Thread
: error 035: argument type mismatch (argument 3) - by div - 15.06.2018, 04:32
Re: : error 035: argument type mismatch (argument 3) - by TadePoleMG - 15.06.2018, 04:48
Re: : error 035: argument type mismatch (argument 3) - by div - 15.06.2018, 04:59
Re: : error 035: argument type mismatch (argument 3) - by TadePoleMG - 15.06.2018, 05:07
Re: : error 035: argument type mismatch (argument 3) - by div - 15.06.2018, 05:14
Re: : error 035: argument type mismatch (argument 3) - by jlalt - 15.06.2018, 05:14
Re: : error 035: argument type mismatch (argument 3) - by div - 15.06.2018, 05:20

Forum Jump:


Users browsing this thread: 1 Guest(s)