18.07.2014, 20:43
Recoded it slightly;
The problem is with this
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
if (INI_Int(File, "Status") == 2) {
new string[128];
format(string, sizeof(string), "{FF0000}Your account has been banned!{FFFFFF}\n\nBanned by:\t %s\nReason:\t %s\nBan Date:\t %s", INI_String(file, "BannedBy"), INI_String(file, "BanReason"), INI_String(file, "BanDate"));
ShowPlayerDialog(playerid, BAN_DIALOG, DIALOG_STYLE_MSGBOX, " ", string, "OK", "");
KickEx(playerid);
INI_Close(ini);
}
/*else
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
SendClientMessage(playerid,X11_SLATEGREY, "Welcome to Valhalla's TDM Server. We hope you enjoy your stay.");
}
else
{
SendClientMessage(playerid,X11_SLATEGREY, "Welcome to Valhalla's TDM Server. We hope you enjoy your stay.");
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registration","Type your password below to register a new account.","Register","Quit");
}
}*/
pawn Код:
if (INI_Int(File, "Status") == 2) {

