Jump to content
RAGE Multiplayer Community

Bridge ServerEvents werden nicht ausgeführt


KneipenJoe
 Share

Recommended Posts

Moin! Bin gerade dabei von ShittyMP auf RageMP zu schreiben stoße dabei leider gerade auf eine Problematik, eventuell könnt ihr mir ja Denkanstöße geben. Einige ServerEvents werden von der Bridge nicht ausgeführt darunter fallen PlayerSpawnPlayerConnected

Folgende Codes werden nicht ausgeführt:

[ServerEvent(Event.PlayerSpawn)]
public void OnPlayerSpawn(Client client)
{
	API.Shared.ConsoleOutput(client.SocialClubName + " spawned.");
}

[ServerEvent(Event.PlayerConnected)]
public void OnPlayerConnectedHandler(Client client)
{
	API.Shared.ConsoleOutput(client.SocialClubName + " connected.");
}

Sie werden allerdings beim Start des Servers anerkannt und in der Konsole angezeigt.

 

Liebe Grüße aus Norddeutschland!

Link to comment
Share on other sites

vor 2 Stunden schrieb .Neø:

https://wiki.gtanet.work/index.php?title=ConsoleOutput

 

NAPI.Util.ConsoleOutput("You should see me!", new []
{
    new ColoredText { Text = "You", Color = Color.Red },
    new ColoredText { Text = "should", Color = Color.Green },
    new ColoredText { Text = "see", Color = Color.Blue },
    new ColoredText { Text = "me!", Color = Color.Orange }
});

  

Danke dir. Bin mal durch die "server_exceptions.txt" der Bride durch gegangen - mich hat der Blitz getroffen. Habe wohl einige Dateien nicht die der Server bzw die Bridge benötigt. Stehe total auf dem Schlauch gerade. 

 

meine server_exceptions.txt:

==================[14.12.2018 16:45:27]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Management.resources'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[14.12.2018 16:45:27]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Management.resources'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[14.12.2018 16:45:27]==================
System.PlatformNotSupportedException: System.Management currently is only supported for Windows desktop applications.
   at new System.Management.ManagementObjectSearcher(string queryString)
=========================================================

==================[14.12.2018 16:45:27]==================
System.ArgumentException: 'windows-1252' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Parameter name: name
   at int System.Globalization.EncodingTable.internalGetCodePageFromName(string name)
=========================================================

 

Liebe Grüße.

Edited by KneipenJoe
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...