[ANET] Game crash

Posted By: larafale

[ANET] Game crash - 10/01/12 12:03

Hi,

When the player dies (client or client-server), the game crashes.
Can you tell me why?
Posted By: MasterQ32

Re: [ANET] Game crash - 10/01/12 12:19

no, without any piece of code, any crash message or other info i can only guess:
Empty pointer
Posted By: Dark_samurai

Re: [ANET] Game crash - 10/01/12 14:31

I guess that you deleted the player entity so the wntry in your players[] array of your last post got invalid. But you trie to use this pointer somewhere in your code. I would write null into the array when the player was deleted and everywhere you use a pointer out of the players[] array check if it is no null pointer.
Posted By: larafale

Re: [ANET] Game crash - 10/01/12 14:35

Sorry,
there was no error message, only a windows crash message( can't execute main.exe).
I found the solution puting a variable death - not death and return in the death player function.
Thanks .
© 2024 lite-C Forums