Argument type mismatch
#1

error 035: argument type mismatch (argument 2)

I get this error on this line

SendClientMessage(playerid, COL_RED, "You have succesfully suicided.How pathetic!");

I dont really understand.
Reply
#2

Search for #define COL_RED and give the whole line
Reply
#3

I changed them but on my dialogs i changed give me error.Only one like and the line is

pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login."Login","Quit");
pawn Код:
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 017: undefined symbol "Login"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : warning 215: expression has no effect
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: ";", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : fatal error 107: too many error messages on one line
Reply
#4

pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login."Login","Quit");
//Changes to
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.", "Login","Quit");
I don't know how in the world you can't see this mismatched quotes
Reply
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login."Login","Quit");
//Changes to
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.", "Login","Quit");
I don't know how in the world you can't see this mismatched quotes
i added your second one and
pawn Код:
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : warning 215: expression has no effect
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: ";", but found "-string-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : warning 215: expression has no effect
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : fatal error 107: too many error messages on one line
Reply
#6

Show few lines before and after
Reply
#7

pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.", "Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"COLOR_WHITE"Registering...",COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
The whole public,since i just started.
Reply
#8

pawn Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"COLOR_WHITE"Registering...",COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
//Changes to
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"
"COLOR_WHITE"Registering...",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
Reply
#9

pawn Код:
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : warning 215: expression has no effect
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: ";", but found "-string-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : warning 215: expression has no effect
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03e_svr_win32\gamemodes\NDRPcostum.pwn(89) : fatal error 107: too many error messages on one line
same after i changed it.
Reply
#10

How does your COLOR_WHITE define look like?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)