whenever i add a scale argument to
dgsCreateButton
--scaleX,scaleY
the text disappears.
even if i set the scale to 1 it still disappears, if i want it to work i have to close function brackets before the scalex,scaley arguments
function countPlayersInRange(x,y,z, range)
local tempCol = createColSphere(x,y,z,range)
players = getElementsWithinColShape(tempCol, "player")
destroyElement(tempCol)
local numberof = 0
for k,v in ipairs(players) do
numberof = numberof+1
end
return numberof
end