29.05.2011, 08:27
Well, i connect to my server and the dialog doesnt show.. Also i got the Users folder created..
I tryd to replace if(!fexist(file)) with if(IsLogged[playerid] == 0) but its still the same..
Help please.
Regards,
Markx.
pawn Код:
public OnPlayerConnect(playerid)
{
ResetPlayerCash(playerid);
TextDrawHideForPlayer(playerid, Textdraw_team);
TextDrawHideForPlayer(playerid, Textdraw_weaps);
TogglePlayerSpectating(playerid, 1);
IsLogged[playerid] = 0;
new file[128], string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"/Users/%s.ini",name);
if(!fexist(file))
{
format(string, sizeof string, ""Blue"Hello %s!\n\n"Green"[System]"White" Welcome to "Red"Future Freedom "White"\nPlease write a password below:", GetName(playerid));
ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, ""Red"Account Registration", string, "Register", "Leave");
}
if(fexist(file))
{
format(string, sizeof string, ""Blue"Hello %s!\n\n"Green"[System]"White" Welcome back to "Red"Future Freedom "White"\nPlease write your password below:", GetName(playerid));
ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, ""Red"Account Login", string, "Login", "Leave");
}
return 1;
}
Help please.
Regards,
Markx.