Здравствуйте, когда я подключаюсь на свой сервер, в cef_game_log.txt выдает ошибку:
[0627/010232.858:INFO:render_frame_host_impl.cc(11505)] RenderFrameHostImpl::MaybeGenerateCrashReport url = package://resourse/cef/reg.html, status = 4, exit_code = 258
[0627/010232.858:INFO:render_frame_host_impl.cc(11505)] RenderFrameHostImpl::MaybeGenerateCrashReport url = package://resourse/cef/reg.html, status = 4, exit_code = 258
mp.events.add("playerJoin", (player) => {
player.outputChatBox("Hello");
dbHandle.connection.query('SELECT * FROM account WHERE name = ?', [player.name], function(error, result){
if(result.length > 0){
player.call("ShowLogin");
}
else {
player.call("ShowRegister");
}
});
});
player.outputChatBox("Hello");
dbHandle.connection.query('SELECT * FROM account WHERE name = ?', [player.name], function(error, result){
if(result.length > 0){
player.call("ShowLogin");
}
else {
player.call("ShowRegister");
}
});
});
let myBrowser;
mp.events.add("ShowRegister", () => {
myBrowser = mp.browsers.new('package://resourse/cef/reg.html');
myBrowser.execute("mp.invoke('focus', true)");
mp.gui.chat.activate(false);
});
mp.events.add("ShowLogin", (player) => {
myBrowser = mp.browsers.new("package://resourse/cef/entrance.html");
myBrowser.execute("mp.invoke('focus', true)");
mp.gui.chat.activate(false);
});
mp.events.add("ShowRegister", () => {
myBrowser = mp.browsers.new('package://resourse/cef/reg.html');
myBrowser.execute("mp.invoke('focus', true)");
mp.gui.chat.activate(false);
});
mp.events.add("ShowLogin", (player) => {
myBrowser = mp.browsers.new("package://resourse/cef/entrance.html");
myBrowser.execute("mp.invoke('focus', true)");
mp.gui.chat.activate(false);
});