WoW:API GetBuildVersion: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 27: Line 27:
:This only returns the version number, not the build number or any other information.
:This only returns the version number, not the build number or any other information.


{{Template:WoW API}}
----
[[Category:API Functions|GetBuildVersion]]
{{WoW API}}
[[Category:API Core Functions|GetBuildVersion]]

Revision as of 04:59, 4 January 2006

GetBuildVersion -Documentation by Zlixar-

Returns the current game version as a string.

version = GetBuildVersion();

Arguements
None

Returns
version
The current version string

Example
version = GetBuildVersion();
DEFAULT_CHAT_FRAME:AddMessage("Current game version is " .. version .. "!", .5, 0, 0);
Returns
Current game version is 1.2.1!

Details
This only returns the version number, not the build number or any other information.

Template:WoW API