Emtrex
New Member
- Joined
- Aug 31, 2013
- Messages
- 47
- Reaction score
- 0
Whenever i log in to my server i get the message "You will be disconnected and will be required to put the login and password again."
And when I logging again my character has "[v]" in front of his name.
This is in my login.lua file.
[local id,nm,qry = getPlayerAccountId(cid),string.find (getCreatureName(cid), "(%[+)%v*(%]+)%s*"),""
if isPremium(cid) and nm == nil then
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '[v] "..getCreatureName(cid).."' WHERE `players`.`account_id`= "..id..";"
elseif (not isPremium(cid)) and nm ~= nil then
local nnome = string.gsub(getCreatureName(cid), "(%[+)%v*(%]+)%s*", "")
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '"..nnome.."' WHERE `players`.`account_id`= "..id..";"
end
if qry ~= "" then
db.executeQuery(qry)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You will be disconnected and will be required to put the login and password again.")
addEvent(doRemoveThing,3000,cid)
end
return true
Thaks in advance!
And when I logging again my character has "[v]" in front of his name.
This is in my login.lua file.
[local id,nm,qry = getPlayerAccountId(cid),string.find (getCreatureName(cid), "(%[+)%v*(%]+)%s*"),""
if isPremium(cid) and nm == nil then
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '[v] "..getCreatureName(cid).."' WHERE `players`.`account_id`= "..id..";"
elseif (not isPremium(cid)) and nm ~= nil then
local nnome = string.gsub(getCreatureName(cid), "(%[+)%v*(%]+)%s*", "")
qry = "UPDATE `theforgottenserver`.`players` SET `name` = '"..nnome.."' WHERE `players`.`account_id`= "..id..";"
end
if qry ~= "" then
db.executeQuery(qry)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You will be disconnected and will be required to put the login and password again.")
addEvent(doRemoveThing,3000,cid)
end
return true
Thaks in advance!