i want to get value of settings from meta
when i get it , it gets i debug ( stack overflew )
function get()
if get ( "Sett" ) then
return get ( "Sett" )
end
end
--- meta
<setting name="*Sett" value="L" />
function Create()
local hFile = fileOpen("map1.map")
buffer = fileRead(hFile, 100000000)
local newFile = fileCreate("map2.map")
if (newFile) then
fileWrite(newFile, buffer)
fileClose(newFile)
fileClose(hFile)
addResourceMap(":File/map2.map",0)
end
end
addCommandHandler("Create",Create)
i have a problem that i have a map in resource that name is " File2 "
i want to get text to it and make also map file and put text in at
and add this map file to another resource that name is " File "
every thing did but the meta file write : <map src="" dimension="0"></map>
the meta don't add the map file name ..
function Create()
local hFile = fileOpen("map1.map")
buffer = fileRead(hFile, 100000000)
local newFile = fileCreate("map2.map")
if (newFile) then
fileWrite(newFile, buffer)
fileClose(newFile)
fileClose(hFile)
addResourceMap(":File/map2.map",0)
end
end
addCommandHandler("Create",Create)
هنا لما اضيف الماب الى مود اسمه File
و الماب موجود في مود File2
طبعا لما اضيف الماب للمود يجي في الميتا
<map src="" dimension="0"></map>
ما يعرف الملف معرفش ليه
addEventHandler("onPlayerLogin",root,
function()
local accName = getAccountName ( getPlayerAccount ( source ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
setElementData(source,"Admin",true)
end
end
)
--- client
if getElementData(localPlayer,"Admin") then
the same previous ex.
not at all ..
addEventHandler("onResourceStart",root,
function( res )
if res == getThisResource() then
for i,v in ipairs(getElementsByType ( "player" )) do
AccountName = getAccountName(getPlayerAccount(v))
setElementData(v,"AccountName",tostring(AccountName))
end
end
end
)
but when any player enter server and login he won't take data AccountName with the value of his account name ..
addEventHandler("onPlayerLogin",root,
function()
AccountName = getAccountName(getPlayerAccount(source))
setElementData(source,"AccountName",tostring(AccountName))
end)
--------------------------
-- client side
AccountName = getElementData(localPlayer,"AccountName")
that is an easy way
when player log in put data on player value is Account name
i tried to use webstats to get stats on my website but i failed
https://wiki.multitheftauto.com/wiki/Resource:Webstats
when i enter the link
ip:port
For Ex. 192.188.4.3:22003 ( not true only examble ) get a message error link isn't true..
any slove please