User:Ccw: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:


== ==
== ==
===<syntaxhighlight lang="lua">Comments:</syntaxhighlight>===
=Unresolved crashes=
''There are no comments. Be the first to comment on this article!''
==Invalid pointer CClientPed::StreamedInPulse==
===m_pCurrentContactEntity is non NULL, but invalid===
 
<br>
''MTA10\mods\shared_logic\CClientPed.cpp  Line:2344''
<syntaxhighlight lang="lua">
--          // 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;
            }
</syntaxhighlight>
<br>
Maybe m_pCurrentContactEntity is being deleted, without the ref being removing here.
 




== ==
== ==

Revision as of 04:51, 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.