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

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
Reply
#2

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)
Reply
#3

Ok Theat works thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)