User:Ccw: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(New crash information)
Line 31: Line 31:
<br>
<br>
Maybe m_pCurrentContactEntity is being deleted, without the ref being removing here.
Maybe m_pCurrentContactEntity is being deleted, without the ref being removing here.




== ==
== ==

Revision as of 04:53, 26 July 2009

Coder.gif This user is an MTA developer


Proposed Lua additions

Client and server function

setElementFrozen ( element, bool )

To work with vehicles, peds and dynamic objects like barrels and what not.

Server event

onSettingChange ( name, oldValue, newValue )

So the resource can take action if one of its settings get changed. Could even cancel the change I suppose.


Unresolved crashes

Invalid pointer CClientPed::StreamedInPulse

m_pCurrentContactEntity is non NULL, but invalid


MTA10\mods\shared_logic\CClientPed.cpp Line:2344

--          // Remove any contact entity we have saved (we won't have one in a vehicle)
            if ( m_pCurrentContactEntity )
            {
>>              m_pCurrentContactEntity->RemoveContact ( this );
                m_pCurrentContactEntity = NULL;
            }


Maybe m_pCurrentContactEntity is being deleted, without the ref being removing here.