-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
setElementHealth in onClientPedDamage can cause crash #472
Comments
it also happen for player,
why do we recreate ped?
|
Cant reproduce in 1.6. Probably fixed? |
Still crashed for me. All I did was runcode that code then shot a ped and instantly crashed. Version = 1.6-release-21890.0.000 EAX=00000000 EBX=00000000 ECX=00000034 EDX=047ED0DC ESI=118906F4 |
I cant reproduce it on 21892 ;/ |
Still crashing on 1.6! I can confirm. same error. I need this function and im trying to do a code not tusing it but nothing works... and with setElementHealth it works but always crashes.... |
Can be reproduced in server r22470 and client r22476. |
Crash can be fixed, but it won't fix the final problem. Crash will no longer occur, but the ped will die after the second hit, probably because for GTA it is already dead and the damage event is no longer triggered. We should stop recreating the ped when we want to revive it, because it causes a lot of problems because the ped is literally being deleted and created again. Setting the right tasks really isn't enough to revive ped? |
Describe the bug
setElementHealth inside onClientPedDamage can cause crash.
To Reproduce
Expected behavior
No crash.
MTA Client (please complete the following information):
v1.5.5-release-13192
Additional context
client_1.5.5-release-13192.0.000_gtasa_00332b2a_5_QPrMb_0100007F_55F3_178_4564C_20180722_2146.dmp
From https://bugs.mtasa.com/view.php?id=8926
The text was updated successfully, but these errors were encountered: