Talk:Scripting Tips: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Information about confusion with scripting tips. This should be easy for new users to read and understand.)
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
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:'''
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)
<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!
Awesome job :) --[[User:bmazoka|bmazoka]] ([[User talk:bmazoka|talk]])
 
 
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>

Latest revision as of 18:00, 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 (talk)