need a little help with "getHubVersion()"
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

need a little help with "getHubVersion()"

Started by Psycho_Chihuahua, 09 April, 2006, 19:14:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Psycho_Chihuahua

I've got myself a little stuck here and i'm sure someone can help me out

what must i do to get a line like:

Hub Version: PtokaX 0.3.4.0f0

to show in an Info Bot?

i tried this:

"\tHub Version: \t"..getHubVersion().."\r\n"..

but it only gives me PtokaX as Version :( i see that in the scripting interface it says something of "name, ver = getHubVersion()" but it doesn't help me much

Any Help is appreciated
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

Thor

Use this:
name, ver = getHubVersion()
"\tHub Version: \t"..name.." "..ver.."\r\n"..

Psycho_Chihuahua

#2
Thnx M8, that did the trick  :D

As it doesn't show which Version of 0.3.4.0 i use i had to add it myself - but this does the trick ;)

PtxVers = "f0 Lua 5.02" -- Up in the Settings and the rest inside the script

	name, ver = getHubVersion()
	"\tHub Version: \t"..name.." "..ver.." "..PtxVers.."\r\n"..
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

SMF spam blocked by CleanTalk