Armanish
Компетентный
Если писать команду /restart, БАЦ! Сервер вылетает и не хочет работать! Как это исправить ?
Вот сам код /restart
Вот сам код /restart
PHP:
if(strcmp(cmd, "/restart", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 10)
{
if(dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT, "{CC9900}A-Login", "Вы вошли как администратор!\n{FF0000}Введите пароль админ-панели ниже!\n", "Авторизация", "Отмена");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_YELLOW, "");
SendClientMessageToAll(COLOR_LIGHTRED, "Происходит перезагрузка сервера, приносим свои извенения.");
SendClientMessageToAll(COLOR_LIGHTRED, "С уважением Команда администраторов White RP");
format(string, sizeof(string), "~r~RESTART");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new txtid;
GameTextForPlayer(i, string, 5000, txtid);
}
printr("Server Restarting");
SaveAccounts();
SaveMaterials();
SaveGZ();
OnPropUpdate();
GameModeExitFunc();
format(string, sizeof(string), "~r~RESTART");
}
return true;
}
