Search the Community
Showing results for tags 'log'.
-
Dear All, Our server crashes at random times with no log entries regarding the crash and there are no dump files either. We are running on a dedicated server with Windows Server 2012. The problem tends to occur more frequently when the connected player count is higher. Is there any way or tool that we could use to find the root cause(s) of these crashes? Any kind of help is greately appreciated. Thanks in advance, shoeri
-
Hey guys, i just started new with JS and ragemp(big noob) and have a question. It probably sounds dumb. I wanted to get a console log after a player disconntects. I got this from the wiki and put it in my "./packages/project/index.js": function playerQuitHandler(player, exitType, reason) { let str = player.name; if (exitType != "kicked") { str += " quit."; } else { str = ` kicked. Reason: ${reason}.`; } console.log(str); } mp.events.add("playerQuit", playerQuitHandler); After i quit game i only get a message like(the message also comes a bit late): [N] 127.0.0.1:51274 has been disconnected. i probably forget something to add but dont know what. Thank you for your help! edit: did "solve" the problem by using: mp.events.add("playerQuit", (player) => { console.log(player.name + " quit."); );