HELP ME!
#1

HELP ME!

Код:
public OnPlayerDisconnect(playerid, reason)
{
	if (GetPVarInt(playerid, "RegisterTextDraws"))
	{
	    for(new i; i < MAX_REGISTER_TEXTDRAWS; i++)
	    {
	        PlayerTextDrawHide(playerid, RegisterTextDraw[playerid][i]);
	        PlayerTextDrawDestroy(playerid, RegisterTextDraw[playerid][i]);
	    }
	}
	if (GetPVarInt(playerid, "LogginTextDraws"))
	{
	    for(new i; i < MAX_LOGGIN_TEXTDRAWS; i++)
	    {
	        PlayerTextDrawHide(playerid, LogginTextDraw[playerid][i]);
	        PlayerTextDrawDestroy(playerid, LogginTextDraw[playerid][i]);
	    }
	}
	SetPVarString(playerid, "Password", EOS); //595 LINE
	
	SetPVarInt(playerid, "Gender", -1);
	
	SetPVarInt(playerid, "BirthDateDay", -1);
	SetPVarInt(playerid, "BirthDateMonth", -1);
	SetPVarInt(playerid, "BirthDateYear", -1);

	SetPVarInt(playerid, "LogginAttempts", -1);
	SetPVarInt(playerid, "CurrentPreviewModel", -1);
	
	SetPVarInt(playerid, "RegisterTextDraws", -1);
	SetPVarInt(playerid, "LogginTextDraws", -1);
	
	SetPVarInt(playerid, "LoggedInPlayer", -1);
	SetPVarInt(playerid, "LogginAttempts", 0);

	return 1;
}
i got this error:

Код:
error 035: argument type mismatch (argument 3) - IN 595 LINE
Reply
#2

What is EOS? Remove that thing, hope I helped you.
Reply
#3

if you want to clear a pvar use DeletePVar
PHP код:
DeletePVar(playerid"Password"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)