Ложит сервер после покупки транспорта!
Например купил машин 10 и после этого ложит сервер и в консоли данная ошибка:
Например купил машин 10 и после этого ложит сервер и в консоли данная ошибка:
Код:
Object reference not set to an instance of an object.
09:36:54.668 [Error] | Vehicle = ApplyCustomization: Object reference not set to an instance of an object.
09:36:58.231 [Succ] | BusinessManager = Ali_Cafari's business get 4000000$ for 'g63'
09:36:58.251 [Info] | Vehicle = Created new vehicle with number: OX068T
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Text.Unicode.Utf8Utility.TranscodeToUtf8(Char*, Int32, Byte*, Int32, Char* ByRef, Byte* ByRef)
at System.Text.UTF8Encoding.GetBytesFast(Char*, Int32, Byte*, Int32, Int32 ByRef)
at System.Text.Encoding.GetBytesWithFallback(System.ReadOnlySpan`1<Char, Int32, System.Span`1<Byte, Int32, System.Text.EncoderNLS)
at System.Text.Encoding.GetBytesWithFallback(Char*, Int32, Byte*, Int32, Int32, Int32)
at System.Text.UTF8Encoding.GetBytes(Char*, Int32, Byte*, Int32)
at System.Runtime.InteropServices.Marshal.StringToAnsiString(System.String, Byte*, Int32, Boolean, Boolean)
at System.StubHelpers.AnsiCharMarshaler.DoAnsiConversion(System.String, Boolean, Boolean, Int32 ByRef)
at System.StubHelpers.CSTRMarshaler.ConvertToNative(Int32, System.String, IntPtr)
at GTANetworkMethods.Vehicle.CreateVehicle(UInt32, GTANetworkAPI.Vector3, Single, Int32, Int32, System.String, Byte, Boolean, Boolean, UInt32)
at Lite.Houses.Garage.SpawnCar(System.String)
at Lite.Core.CarRoom.RemoteEvent_carroomBuy(GTANetworkAPI.Player, System.String, System.String)
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean, Boolean)
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at GTANetworkInternals.RemoteEventParser.Parse(GTANetworkAPI.Player, UInt64, System.Object[])
at GTANetworkInternals.RemoteEventHandler.Parse(GTANetworkAPI.Player, UInt64, System.Object[])
at Bootstrapper.EventInternalClass.OnPlayerRemoteEvent(UInt16, UInt64, UInt32, IntPtr)