Talk:Optional Arguments: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with ""Optional Arguments have one limitation. You cannot use any optional arguments unless all previous arguments are also supplied." What if you replace one of the previous argument...")
 
No edit summary
Line 2: Line 2:


What if you replace one of the previous arguments with 'nil'? Atleast that works with addBan().
What if you replace one of the previous arguments with 'nil'? Atleast that works with addBan().
: It depends on the function, some support that, some don't. [[User:EAi|eAi]] 21:43, 4 January 2011 (UTC)

Revision as of 21:43, 4 January 2011

"Optional Arguments have one limitation. You cannot use any optional arguments unless all previous arguments are also supplied."

What if you replace one of the previous arguments with 'nil'? Atleast that works with addBan().

It depends on the function, some support that, some don't. eAi 21:43, 4 January 2011 (UTC)