Talk:Scripting Tips: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Unclear information. Recently asked on MTA:SA forums.
<blockquote>
If your script is covered in isTimer and isElement checks to hide debug warnings from deleted elements not being dereferenced (making the variable nil) you will regret it when that element ID or timer pointer has to be re-used by MTA in a weeks time and your script starts acting strangely and you won't have a clue why. Dereference destroyed elements and disconnected players!
</blockquote>
[http://forum.mtasa.com/viewtopic.php?f=91&t=78536 Forum Thread]
'''Text:'''
<blockquote>
I saw this tip on this page on the wiki today:
    If your script is covered in isTimer and isElement checks to hide debug warnings from deleted elements not being dereferenced (making the variable nil) you will regret it when that element ID or timer pointer has to be re-used by MTA in a weeks time and your script starts acting strangely and you won't have a clue why. Dereference destroyed elements and disconnected players!
https://wiki.multitheftauto.com/wiki/Scripting_Tips
I'm just confused by what it means when it says the element has to be re-used by MTA in a a weeks time.. I'm not sure what it means to be 100% honest. Can anyone explain to mean what that means? I would appreciate it. Thanks!
</blockquote>
Information should be revised to be easy to read by new players.


----
----


I've added more explanations that are in great detail. --[[User:Arran Fortuna|Arran Fortuna]] ([[User talk:Arran Fortuna|talk]]) 12:14, 1 August 2014 (UTC)
I've added more explanations that are in great detail. --[[User:Arran Fortuna|Arran Fortuna]] ([[User talk:Arran Fortuna|talk]]) 12:14, 1 August 2014 (UTC)
Awesome job :) --[[User:bmazoka|bmazoka]] ([[User talk:bmazoka|talk])

Revision as of 17:59, 1 August 2014


I've added more explanations that are in great detail. --Arran Fortuna (talk) 12:14, 1 August 2014 (UTC)

Awesome job :) --bmazoka ([[User talk:bmazoka|talk])