<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getargcount</id>
		<title>Getargcount - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getargcount"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getargcount&amp;action=history"/>
		<updated>2026-05-04T01:23:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getargcount&amp;diff=235&amp;oldid=prev</id>
		<title>Mysterious: Created page with &quot;== Syntax == * getargcount()  == Description == To be used inside functions/callsub labels, returns quantity of arguments provided  == Examples== In '''callsub''': &lt;pre&gt; m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getargcount&amp;diff=235&amp;oldid=prev"/>
				<updated>2013-02-12T00:03:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Syntax == * &lt;a href=&quot;/wiki/Getargcount&quot; title=&quot;Getargcount&quot;&gt;getargcount&lt;/a&gt;()  == Description == To be used inside functions/callsub labels, returns quantity of arguments provided  == Examples== In &amp;#039;&amp;#039;&amp;#039;callsub&amp;#039;&amp;#039;&amp;#039;: &amp;lt;pre&amp;gt; m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Syntax ==&lt;br /&gt;
* [[getargcount]]()&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
To be used inside functions/callsub labels, returns quantity of arguments provided&lt;br /&gt;
&lt;br /&gt;
== Examples==&lt;br /&gt;
In '''callsub''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mapname,x,y,z&amp;lt;TAB&amp;gt;script&amp;lt;TAB&amp;gt;SampleCallSub&amp;lt;TAB&amp;gt;123,{&lt;br /&gt;
      mes &amp;quot;The number of arguments in the callsub is: &amp;quot;+callsub(SAMPLE_CS,1,2,3,4,5,6);&lt;br /&gt;
close;&lt;br /&gt;
&lt;br /&gt;
SAMPLE_CS:&lt;br /&gt;
    return getargcount();&lt;br /&gt;
end;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//This should return the message:&lt;br /&gt;
//The number of arguments in the callfunc is 6 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In '''callfunc''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mapname,x,y,z&amp;lt;TAB&amp;gt;script&amp;lt;TAB&amp;gt;SampleCallSub&amp;lt;TAB&amp;gt;123,{&lt;br /&gt;
      mes &amp;quot;The number of arguments in the callfunc is: &amp;quot;+callfunc(SAMPLE_CS,1,2,3,4,5);&lt;br /&gt;
close;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
function&amp;lt;TAB&amp;gt;script&amp;lt;TAB&amp;gt;funcName&amp;lt;TAB&amp;gt;{&lt;br /&gt;
     return getargcount();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//This should return the message:&lt;br /&gt;
//The number of arguments in the callfunc is 5 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Mysterious</name></author>	</entry>

	</feed>