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

D:\Admin\My Documents\Downloads\UnderTheGames\Art Role\Server\Kingdom Server\gamemodes\artrole.pwn(53) : error 035: argument type mismatch (argument 1)
D:\Admin\My Documents\Downloads\UnderTheGames\Art Role\Server\Kingdom Server\gamemodes\artrole.pwn(55) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

------------------------------------------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE" Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""C OL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
Reply
#2

What is the "UserPath" function?
Reply
#3

Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
	{
		INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Ukucajte sifru da se ulogijete.", "Login", "Napusti");
	}
	else
	{
 		ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registracija...", "Ukucajte sifru da bi ste se registrovali.", "Registracija", "Napusti");
	}
        return 1;
}
These are mine and they are working perfectly
Reply
#4

Problem is in macro UserPath. Give us definition of UserPath
Reply
#5

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)