Quote from: Nihongo^ on Jul 30, 2023, 02:47 PMHy, every time I lose my players, whenever I restart my server from the control panel.Bro,I think is easy, just u need split ur script for example: main.nut & main2.nut ,and if u want to reload ur server just let the server dofile("main2.nut"); in fact our problem is that something can't do twice ,if do ,them will make error,so put that script in main.nut , just onServer first start to load that and put other thing in main2.nut ,use dofile we can reload that main2.nut script.
So I found this script in the forum, thinking it would help me to reload the script without losing players
But it gives me an errorCode Selectcase "reload":
Fu error The index Disconnect SQL: does not exist
if (highestRole.GetLevel() < 2) sendMessage(channels["staffchat"], "You do not have permission to use this command.");
else
{
::onScriptUnload();
::ReloadScripts()
}