You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Event]
public void OnPlayerTakeDamage(Player player, Player issuer, float amount, Weapon weapon, BodyPart bodypart)
{
}
and OnPlayerGiveDamage
im get this error: [SampSharp:ERROR] Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SampSharp.Entities.EntityNotFoundException: The specified entity could not be found. (Parameter 'entity') at SampSharp.Entities.EntityManager.GetComponent[T](EntityId entity) at lambda_method(Closure , Object , Object[] , IServiceProvider , IEntityManager ) at SampSharp.Entities.EventService.<>c__DisplayClass11_0.<CreateInvoker>b__0(Object instance, EventContext eventContext) at SampSharp.Entities.EventService.Invoke(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.EventService.<>c__DisplayClass12_0.<BuildInvoke>b__0(Object[] args) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SampSharp.Core.Callbacks.Callback.Invoke(Byte[] buffer, Int32 startIndex) at SampSharp.Core.HostedGameModeClient.PublicCall(String name, IntPtr data, Int32 length) [SampSharp:ERROR] Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SampSharp.Entities.EntityNotFoundException: The specified entity could not be found. (Parameter 'entity') at SampSharp.Entities.EntityManager.GetComponent[T](EntityId entity) at lambda_method(Closure , Object , Object[] , IServiceProvider , IEntityManager ) at SampSharp.Entities.EventService.<>c__DisplayClass11_0.<CreateInvoker>b__0(Object instance, EventContext eventContext) at SampSharp.Entities.EventService.Invoke(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.EventService.<>c__DisplayClass12_0.<BuildInvoke>b__0(Object[] args) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SampSharp.Core.Callbacks.Callback.Invoke(Byte[] buffer, Int32 startIndex) at SampSharp.Core.HostedGameModeClient.PublicCall(String name, IntPtr data, Int32 length)
The text was updated successfully, but these errors were encountered:
A1dyyyy
changed the title
error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entity
error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entities
May 16, 2020
A1dyyyy
changed the title
error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entities
[ECS] error OnPlayerTakeDamage and OnPlayerGiveDamage
May 18, 2020
[Event]
public void OnPlayerTakeDamage(Player player, Player issuer, float amount, Weapon weapon, BodyPart bodypart)
{
}
and OnPlayerGiveDamage
im get this error:
[SampSharp:ERROR] Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SampSharp.Entities.EntityNotFoundException: The specified entity could not be found. (Parameter 'entity') at SampSharp.Entities.EntityManager.GetComponent[T](EntityId entity) at lambda_method(Closure , Object , Object[] , IServiceProvider , IEntityManager ) at SampSharp.Entities.EventService.<>c__DisplayClass11_0.<CreateInvoker>b__0(Object instance, EventContext eventContext) at SampSharp.Entities.EventService.Invoke(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.EventService.<>c__DisplayClass12_0.<BuildInvoke>b__0(Object[] args) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SampSharp.Core.Callbacks.Callback.Invoke(Byte[] buffer, Int32 startIndex) at SampSharp.Core.HostedGameModeClient.PublicCall(String name, IntPtr data, Int32 length) [SampSharp:ERROR] Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SampSharp.Entities.EntityNotFoundException: The specified entity could not be found. (Parameter 'entity') at SampSharp.Entities.EntityManager.GetComponent[T](EntityId entity) at lambda_method(Closure , Object , Object[] , IServiceProvider , IEntityManager ) at SampSharp.Entities.EventService.<>c__DisplayClass11_0.<CreateInvoker>b__0(Object instance, EventContext eventContext) at SampSharp.Entities.EventService.Invoke(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.SAMP.EntityMiddleware.Invoke(EventContext context, IEntityManager entityManager) at lambda_method(Closure , Object , EventContext , IServiceProvider ) at SampSharp.Entities.EcsBuilderUseMiddlewareExtensions.<>c__DisplayClass3_1.<UseMiddleware>b__2(EventContext context) at SampSharp.Entities.EventService.<>c__DisplayClass12_0.<BuildInvoke>b__0(Object[] args) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at SampSharp.Core.Callbacks.Callback.Invoke(Byte[] buffer, Int32 startIndex) at SampSharp.Core.HostedGameModeClient.PublicCall(String name, IntPtr data, Int32 length)
The text was updated successfully, but these errors were encountered: