SA-MP Forums Archive
error 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 035: argument type mismatch (argument 3) (/showthread.php?tid=199095)



error 035: argument type mismatch (argument 3) - eDz0r - 14.12.2010

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 1)
{
new pName[MAX_PLAYER_NAME], pUFile[50];
GetPlayerName(playerid, pName, sizeof(pName));
format(pUFile, sizeof(pUFile), SERVER_USER_FILES_FOLDER, pName);
if(!response)
{
Kick(playerid);
}
if (!strlen(inputtext))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "Enter Your Password Below", "Register", "Cancel");
}
dini_Create(pUFile);
dini_IntSet(pUFile, "Password", inputtext);//Line Error<<------------------------
dini_IntSet(pUFile, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0);
dini_IntSet(pUFile, "Level",PlayerInfo[playerid][pLevel] = 1);
dini_IntSet(pUFile, "Money",PlayerInfo[playerid][pMoney] = 500);
IsPlayerLogged[playerid] = 1;
}
return 1;
}
Advise Thanks


Re: error 035: argument type mismatch (argument 3) - Mikkel_Pedersen - 14.12.2010

dini_IntSet is to insert an integer, but you are trying to insert a string (the password). You should use the dini function to insert a string (dini_Set)


Re: error 035: argument type mismatch (argument 3) - eDz0r - 14.12.2010

Ok Theat works thanks