Difference between revisions of "TMapsList.GetMapIdByName"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''function GetMapIdByName(Name: string): integer''''' Name: name of the map to searched ==Description== Returns the index of ''Name'' in TMapsList.Map array {{test|...")
 
(Description)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Returns the index of ''Name'' in [[TMapsList.Map]] array
 
Returns the index of ''Name'' in [[TMapsList.Map]] array
  
{{test|What if a map is already on there? is it case-sensitive?}}
+
{{note|When a map is not in the array, the returned ID equals '''-1'''.}}
 +
{{note|The function is '''not''' case sensitive.}}
 
[[Category:TMapsList]]
 
[[Category:TMapsList]]

Latest revision as of 19:32, 13 June 2018

function GetMapIdByName(Name: string): integer
 Name: name of the map to searched

Description

Returns the index of Name in TMapsList.Map array

Note: When a map is not in the array, the returned ID equals -1.
Note: The function is not case sensitive.