SA-MP Forums Archive
Argument Type Mismatch Error. - 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: Argument Type Mismatch Error. (/showthread.php?tid=436229)



Argument Type Mismatch Error. - ross8839 - 10.05.2013

pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Login",""COL_WHITE"Type your password below!", "Login", "Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Register", ""COL_WHITE"Create an account by entering your password below!", "Register", "Quit");
    }
    return 1;
}
Here are the errors:
pawn Код:
E:\GTA\Servers\1st\gamemodes\1st.pwn(52) : error 035: argument type mismatch (argument 1)
E:\GTA\Servers\1st\gamemodes\1st.pwn(54) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.