26.06.2013, 16:30
I'm getting this error. ;I
Heres my whole OnPlayerConnect.
Heres the error line.
Another question I wanna ask is; why don't stock and forward turn out blue when I make a function using them? They are just regular black... (I'm REALLY not sure, but I think this can be a bug.)
Код:
error 035: argument type mismatch (argument 1)
pawn Код:
public OnPlayerConnect(playerid)
{
if(RoleplayNameCheck(GetPlayerName(playerid)))
{
SendClientMessage(playerid, -1, COLOR_RED"Your name is not in the Firstname_Lastname format! "COLOR_WHITE"Please correct it.");
Kick(playerid);
}
return 1;
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;
}
pawn Код:
if(! RoleplayNameCheck(GetPlayerName(playerid)))