Pget count the number of Servers, who run the scripters Plugin.
How to use:
[b]First import pget[/b]
[syntax="python"] import pget [/syntax]
[b]Then make a Public Variable under load():[/b]
An Example:
[syntax="python"]info = es.AddonInfo()
info.version = "3.0"
info.basename = "stamm"
es.set("%s" % info.basename,info.version)
es.makepublic(info.basename)[/syntax]
At leat make a global Variable at [b]load() and es_map_start(ev)[/b] and use the command [b]pget.countit(globalname)[/b], globalname is your Public Variable
an Example with stamm;
[syntax="python"]
def load():
global numbers
numbers = pget.countit("stamm")
def es_map_start(ev):
global numbers
numbers = pget.countit("stamm")[/syntax]
numbers is now the Numbers of Servers, [b]it is a INTEGER!![/b]
[b]So don't use %s, use %i^^[/b]
Installation
[b]Unzip [/b] the zip file
Copy the [b]pget.py[/b] in [b]addons/eventscripts/_libs/python[/b]
import it with
[syntax="python"] import pget [/syntax]
[b]Ready!![/b]
Version Notes For 1.0
Updated on: 2009-12-04 12:59:22 EST by uedi (View Zip Contents)
1.0
First Release