Yes i am having trouble with the command its doesn't work can someone tell me why.
talkaction
serverinfo lua
local config = {
rateExp = getConfigInfo('rateExp'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel')
}
function onSay(cid, words, param)
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. config.rateExp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return TRUE
end
Talkaction xml
<talkaction words="/serverinfo" script="serverinfo.lua"/>
Can someone help me out
talkaction
serverinfo lua
local config = {
rateExp = getConfigInfo('rateExp'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel')
}
function onSay(cid, words, param)
doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. config.rateExp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
return TRUE
end
Talkaction xml
<talkaction words="/serverinfo" script="serverinfo.lua"/>
Can someone help me out