Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECS] error OnPlayerTakeDamage and OnPlayerGiveDamage #350

Closed
A1dyyyy opened this issue May 10, 2020 · 1 comment
Closed

[ECS] error OnPlayerTakeDamage and OnPlayerGiveDamage #350

A1dyyyy opened this issue May 10, 2020 · 1 comment
Milestone

Comments

@A1dyyyy
Copy link

A1dyyyy commented May 10, 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)

@A1dyyyy A1dyyyy changed the title error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entity error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entities May 16, 2020
@A1dyyyy A1dyyyy changed the title error OnPlayerTakeDamage and OnPlayerGiveDamage in SampSharp.Entities [ECS] error OnPlayerTakeDamage and OnPlayerGiveDamage May 18, 2020
@ikkentim
Copy link
Owner

closed in 0b6b2e5

@ikkentim ikkentim added this to the 0.10.0 milestone Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants