27.08.2011, 21:30
Quote:
you made a mistake in your code. Most likely on your onrequestclass, or onplayerspawn
|
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(logged[playerid] == 0)
{
new playerfile[100], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(playerfile, sizeof(playerfile), "Users/%s.ini",pname);
if(dini_Exists(playerfile) && logged[playerid] == 0) ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"{B8860B}Log-In","Log-In Before Spawn!\nType Your Account Password To Join The Server","Log-In","Cancel");
if(!dini_Exists(playerfile) && logged[playerid] == 0) ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"{B8860B}Register","Register Before Spawn!\nType Your Account Password To Join The Server","Register","Cancel");
return 1;
}
return 1;
}