Another problem The healh and armor shows 0 wahtever i do
function bindTheKeys()
bindKey ( "F2", "down", openGui )
bindKey ( "F2", "up", closeGui )
bindKey ( "F2", "down", stats )
end
addCommandHandler ( "bindme", bindTheKeys )
function stats()
local ping = getElementData (getLocalPlayer(), "ping")
local ip = getElementData (getLocalPlayer(), "ip")
local serial = getElementData (getLocalPlayer(), "serial")
local health = getElementData (getLocalPlayer(), "health")
local armour = getElementData (getLocalPlayer(), "armour")
guiSetText(GUIEditor_Label[4], "Serial: " ..tostring(serial).. " " ,true, GUIEditor_Window[1])
guiSetText(GUIEditor_Label[3], "Ping: " ..tostring(ping).. " " ,true, GUIEditor_Window[1])
guiSetText(GUIEditor_Label[5], "IP: " ..tostring(ip).. " " ,true, GUIEditor_Window[1])
guiSetText(GUIEditor_Label[1], "Health: " ..tostring(health).. " " ,true, GUIEditor_Window[1])
guiSetText(GUIEditor_Label[2], "Armour: " ..tostring(armour).. " " ,true, GUIEditor_Window[1])
end
function openGui()
infoGui()
end
function closeGui()
guiSetVisible ( GUIEditor_Window[1], false )
end
Server side in 1th post