m
Move page script moved page API GetBuildInfo to WoW:API GetBuildInfo without leaving a redirect
(Returns information about current client build.) |
m (Move page script moved page API GetBuildInfo to WoW:API GetBuildInfo without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns information about current client build. | Returns information about current client build. | ||
version, build, date = GetBuildInfo() | version, build, date, tocversion = GetBuildInfo() | ||
== Parameters == | == Parameters == | ||
;''Returns'' | ;''Returns'' | ||
:version, build, date | :version, build, date, tocversion | ||
:;version : String - version | :;version : String - version | ||
:;build : String - build number | :;build : String - build number | ||
:;date : String - build date | :;date : String - build date | ||
:;tocversion : Number - TOC Version number (New in 2.4.2) | |||
== Example == | == Example == | ||
local version, build, date = GetBuildInfo() | local version, build, date, tocversion = GetBuildInfo() | ||
==== Result ==== | ==== Result ==== | ||
version = " | version = "2.4.2" | ||
build = " | build = "8278" | ||
date = " | date = "May 1 2008" | ||
tocversion = 20400 | |||
Try this macro: | |||
/script v, b, d, t = GetBuildInfo() | |||
/script print(string.format("version = %s, build = %s, date = '%s', tocversion = %s.", v, b, d, t)) | |||
---- | ---- | ||