Sign in to follow this  
ellfeeenity

PlayerDisconnected problem

Recommended Posts

when player leaves my local server crashes, playerDisconnected doesnt called

and in server_exceptions.txt this (bridge version)

Цитата

System.ArgumentException: Object of type 'GTANetworkAPI.DisconnectionType' cannot be converted to type 'System.Byte'.
   at object RuntimeType.TryChangeType(object value, Binder binder, CultureInfo culture, bool needsSpecialCast)

 

Share this post


Link to post
Share on other sites
4 hours ago, ellfeeenity said:

when player leaves my local server crashes, playerDisconnected doesnt called

and in server_exceptions.txt this (bridge version)

 

Post the code where you process the event if you want to get help. We can't help you without knowing what you are doing wrong. From the error it just seems that you're trying to convert DisconnectionType to Byte, but disconnection type is not an extension of byte.

Share this post


Link to post
Share on other sites
13 часа назад, Stuyk сказал:

The answer to this question was to not use the NuGet package. Reference the bootstrapper .dll inside of your run time folder.
 

 

thank u, thats work

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.