: error 035: argument type mismatch (argument 3) -
RLGaming - 27.10.2012
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
Re: : error 035: argument type mismatch (argument 3) -
Yamakei - 27.10.2012
Try that,
INI_WriteInt(File, "Password", password));
Re: : error 035: argument type mismatch (argument 3) -
RLGaming - 27.10.2012
More errors now
Re: : error 035: argument type mismatch (argument 3) -
Catalyst- - 27.10.2012
This is what you should use to save a string:
pawn Код:
INI_WriteString(File, "Password", password);
Re: : error 035: argument type mismatch (argument 3) -
RLGaming - 27.10.2012
rep'd
Re: : error 035: argument type mismatch (argument 3) -
RLGaming - 27.10.2012
pawn Код:
error 033: array must be indexed (variable "-unknown-")
Got this error when doing another like function
function:
pawn Код:
Job_ReturnID(jobid)
{
new
szName[32] = "0";
switch(jobid) {
case 1: szName = "1";
case 2: szName = "2";
}
return szName;
}
Line of error: new jobs = Job_ReturnID(jobid);
Re: : error 035: argument type mismatch (argument 3) -
Catalyst- - 27.10.2012
pawn Код:
new jobs[32];
jobs = Job_ReturnID(jobid);
Re: : error 035: argument type mismatch (argument 3) -
RLGaming - 27.10.2012
'error 017: undefined symbol "jobid"
line: jobs = Job_ReturnID(jobid);
Re: : error 035: argument type mismatch (argument 3) -
Catalyst- - 27.10.2012
You'll need to paste the command or whatever it is that you're working with, so that I can see what you're trying to do.