SA-MP Forums Archive
error(INI_String) 035: argument type mismatch (argument 3) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error(INI_String) 035: argument type mismatch (argument 3) (/showthread.php?tid=414718)



error(INI_String) 035: argument type mismatch (argument 3) - dusk - 10.02.2013

Code:
pawn Код:
CMD:register(playerid,params[])
{
    new pass;
    new string[128];
    if(sscanf(params,"s",pass))SendClientMessage(playerid,0x00FF00FF,"/register pass");
    format(string,sizeof(pass),"NU:%s",string);
    {
        SendClientMessage(playerid,0x00FF00FF,string);
        new INI:ini=INI_Open("naujausias.ini");
        INI_WriteString(ini,"Password:",pass,sizeof(pass));
        INI_Close(ini);
    }
}
Line 34:
pawn Код:
INI_WriteString(ini,"Password:",pass,sizeof(pass));
Problem:
pawn Код:
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam1.pwn(34) : error 035: argument type mismatch (argument 3)
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam1.pwn(34) : error 035: argument type mismatch (argument 3)



Re: error(INI_String) 035: argument type mismatch (argument 3) - Misiur - 10.02.2013

pawn Код:
new pass;
//changes to
new pass[max pass length + 1];
Of course change max pass length to numeric value


Re: error(INI_String) 035: argument type mismatch (argument 3) - dusk - 10.02.2013

Thankyou, it works fine now.

+rep