Talk:Scripting Tips: Difference between revisions
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
Information should be revised to be easy to read by new players. | 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) |
Revision as of 12:14, 1 August 2014
Unclear information. Recently asked on MTA:SA forums.
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!
Text:
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_TipsI'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!
Information should be revised to be easy to read by new players.
I've added more explanations that are in great detail. --Arran Fortuna (talk) 12:14, 1 August 2014 (UTC)