<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AcompareStrings</id>
	<title>Gameplay::compareStrings - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Gameplay%3A%3AcompareStrings"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;action=history"/>
	<updated>2026-06-04T03:56:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=26269&amp;oldid=prev</id>
		<title>Shr0x: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=26269&amp;oldid=prev"/>
		<updated>2024-07-22T10:07:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:07, 22 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Gameplay_s_function_c&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Gameplay_functions_c&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-2504:rev-26269 --&gt;
&lt;/table&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=2504&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=2504&amp;oldid=prev"/>
		<updated>2017-05-06T21:06:37Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:06, 6 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Compares two strings up to a specified number of characters.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Parameters:&amp;lt;br&amp;gt;str1 - String to be compared.&amp;lt;br&amp;gt;str2 - String to be compared.&amp;lt;br&amp;gt;matchCase - Comparison will be case-sensitive.&amp;lt;br&amp;gt;maxLength - Maximum number of characters to compare. A value of -1 indicates an infinite length.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Returns:&amp;lt;br&amp;gt;A value indicating the relationship between the strings:&amp;lt;br&amp;gt;&amp;amp;lt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;B&amp;#039;, so result = -1)&amp;lt;br&amp;gt;0 - The contents of both strings are equal.&amp;lt;br&amp;gt;&amp;amp;gt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;B&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;, so result = 1)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Examples:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;STRING&amp;#039;, &amp;#039;string&amp;#039;, false, -1); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;TESTING&amp;#039;, &amp;#039;test&amp;#039;, false, 4); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;R2D2&amp;#039;, &amp;#039;R2xx&amp;#039;, false, 2); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;foo&amp;#039;, &amp;#039;bar&amp;#039;, false, -1); // 4; &amp;#039;f&amp;#039; &amp;amp;gt; &amp;#039;b&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 0; equal&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;When comparing case-sensitive strings, lower-case characters are greater than upper-case characters:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;a&amp;#039;, true, 1); // -1; &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;a&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;a&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 1; &amp;#039;a&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Compares two strings up to a specified number of characters.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Parameters:&amp;lt;br&amp;gt;str1 - String to be compared.&amp;lt;br&amp;gt;str2 - String to be compared.&amp;lt;br&amp;gt;matchCase - Comparison will be case-sensitive.&amp;lt;br&amp;gt;maxLength - Maximum number of characters to compare. A value of -1 indicates an infinite length.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Returns:&amp;lt;br&amp;gt;A value indicating the relationship between the strings:&amp;lt;br&amp;gt;&amp;amp;lt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;B&amp;#039;, so result = -1)&amp;lt;br&amp;gt;0 - The contents of both strings are equal.&amp;lt;br&amp;gt;&amp;amp;gt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;B&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;, so result = 1)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Examples:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;STRING&amp;#039;, &amp;#039;string&amp;#039;, false, -1); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;TESTING&amp;#039;, &amp;#039;test&amp;#039;, false, 4); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;R2D2&amp;#039;, &amp;#039;R2xx&amp;#039;, false, 2); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;foo&amp;#039;, &amp;#039;bar&amp;#039;, false, -1); // 4; &amp;#039;f&amp;#039; &amp;amp;gt; &amp;#039;b&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 0; equal&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;When comparing case-sensitive strings, lower-case characters are greater than upper-case characters:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;a&amp;#039;, true, 1); // -1; &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;a&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;a&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 1; &amp;#039;a&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;javascript&quot;&amp;gt;gameplay.compareStrings(str1, str2, matchCase, maxLength);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;javascript&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mp.game.&lt;/ins&gt;gameplay.compareStrings(str1, str2, matchCase, maxLength);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Required Arguments ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Required Arguments ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;str1:&amp;#039;&amp;#039;&amp;#039; String&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;str1:&amp;#039;&amp;#039;&amp;#039; String&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;todo&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;// &lt;/ins&gt;todo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Gameplay_function_c&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Gameplay_s_function_c&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-1578:rev-2504 --&gt;
&lt;/table&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=1578&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Gameplay::compareStrings&amp;diff=1578&amp;oldid=prev"/>
		<updated>2017-05-06T20:46:20Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Compares two strings up to a specified number of characters.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Parameters:&amp;lt;br&amp;gt;str1 - String to be compared.&amp;lt;br&amp;gt;str2 - String to be compared.&amp;lt;br&amp;gt;matchCase - Comparison will be case-sensitive.&amp;lt;br&amp;gt;maxLength - Maximum number of characters to compare. A value of -1 indicates an infinite length.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Returns:&amp;lt;br&amp;gt;A value indicating the relationship between the strings:&amp;lt;br&amp;gt;&amp;amp;lt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;B&amp;#039;, so result = -1)&amp;lt;br&amp;gt;0 - The contents of both strings are equal.&amp;lt;br&amp;gt;&amp;amp;gt;0 - The first non-matching character in &amp;#039;str1&amp;#039; is less than the one in &amp;#039;str2&amp;#039;. (e.g. &amp;#039;B&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;, so result = 1)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Examples:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;STRING&amp;#039;, &amp;#039;string&amp;#039;, false, -1); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;TESTING&amp;#039;, &amp;#039;test&amp;#039;, false, 4); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;R2D2&amp;#039;, &amp;#039;R2xx&amp;#039;, false, 2); // 0; equal&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;foo&amp;#039;, &amp;#039;bar&amp;#039;, false, -1); // 4; &amp;#039;f&amp;#039; &amp;amp;gt; &amp;#039;b&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 0; equal&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;When comparing case-sensitive strings, lower-case characters are greater than upper-case characters:&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;A&amp;#039;, &amp;#039;a&amp;#039;, true, 1); // -1; &amp;#039;A&amp;#039; &amp;amp;lt; &amp;#039;a&amp;#039;&amp;lt;br&amp;gt;GAMEPLAY::COMPARE_STRINGS(&amp;#039;a&amp;#039;, &amp;#039;A&amp;#039;, true, 1); // 1; &amp;#039;a&amp;#039; &amp;amp;gt; &amp;#039;A&amp;#039;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;gameplay.compareStrings(str1, str2, matchCase, maxLength);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;str1:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;str2:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;matchCase:&amp;#039;&amp;#039;&amp;#039; Boolean&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;maxLength:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Gameplay_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
</feed>