<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DE/Optionale_Argumente?action=history&amp;feed=atom</id>
	<title>DE/Optionale Argumente - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DE/Optionale_Argumente?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/Optionale_Argumente&amp;action=history"/>
	<updated>2026-05-06T18:29:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/Optionale_Argumente&amp;diff=32522&amp;oldid=prev</id>
		<title>Leyynen: Created page with &quot;Optionale Argumente sind Argumente, welche einer Funktion angepasst sind, aber nicht zwingend notwendig sind, damit die Funktion funktioniert. Wenn die...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/Optionale_Argumente&amp;diff=32522&amp;oldid=prev"/>
		<updated>2012-08-21T11:41:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/DE/Optionale_Argumente&quot; title=&quot;DE/Optionale Argumente&quot;&gt;Optionale Argumente&lt;/a&gt; sind Argumente, welche einer Funktion angepasst sind, aber nicht zwingend notwendig sind, damit die Funktion funktioniert. Wenn die...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[DE/Optionale Argumente|Optionale Argumente]] sind Argumente, welche einer Funktion angepasst sind, aber nicht zwingend notwendig sind, damit die Funktion funktioniert. Wenn diese nicht angegeben sind, werden oft Standardwerte verwendet.&lt;br /&gt;
&lt;br /&gt;
Wenn man die Argumente bei einem Syntax anschaut, bemerkt man, dass die optionale Argumente immer in eckigen Klammern dargestellt werden.&lt;br /&gt;
&lt;br /&gt;
Beispiel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;createVehicle ( int model, float x, float y, float z, [ float rx, float ry, float rz ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In diesem Beispiel sind '''rx''', '''ry''', und '''rz''' [[DE/Optionale Argumente|Optionale Argumente]].&lt;br /&gt;
&lt;br /&gt;
==Verwedung von optionalen Argumenten==&lt;br /&gt;
&lt;br /&gt;
[[DE/Optionale Argumente|Optionale Argumente]] haben eine Einschränkung. ''Bevor nicht alle vorgegeben optionalen Argumente bestimmt sind'', können keine weitere optionale Argumente verwendet werden.&lt;br /&gt;
&lt;br /&gt;
Dies bedeutet in unserem Beispiel, wenn man '''rz''' angeben will, müssen zuerst '''rx''' und '''ry''' angegeben werden.&lt;br /&gt;
&lt;br /&gt;
[[Category:DE/Skripting Konzepte]]&lt;br /&gt;
&lt;br /&gt;
[[pl:Argumenty opcjonalne]]&lt;br /&gt;
[[ru:Optional Arguments]]&lt;br /&gt;
[[en:Optional Arguments]]&lt;/div&gt;</summary>
		<author><name>Leyynen</name></author>
	</entry>
</feed>