How can i get my server ip
The wiki func:
function getServerIp()
callRemote("http://www.nub.hj.cx/getServerIp.php",function(value)
if value ~= "ERROR" then
ip = value
end
end)
return ip
end
don't working how can fix it?
function Dltsx(data,x)
if type(data)=="string" then
while #data > x do
data = data:sub(1, #data-1)
end
return data..".."
else
return false
end
end
outputChatBox(Dltsx("MTAsangoodplayers",7))
Thank you very much !
Hello guys,
A string : DATA = "DataPlayer"
the data len is #DATA = 9
i want change it to:
if #DATA > 7 then
"DTaPlay.."
how can i do it ?
end
2 e.g
Datax = "MTAsangoodplayers"
to ;
if #Datax > 7 then
to;
"MTAsango.."
end
I hope you understand me
It was a bit confused