• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

"..getAccountNumberByPlayerName(cid).."

Neroslaw

New Member
Joined
Aug 19, 2009
Messages
43
Reaction score
0
hi i need to get player account number
and when i use this function "..getAccountNumberByPlayerName(cid).."

its showing me 0

its in talkactions

any idea?

its very old tfs
 
function onSay(cid, words, param)
local playerPos = getCreaturePosition(cid)
doPlayerSendTextMessage(cid, 22, "Your account number is "..getAccountNumberByPlayerName(name)..".")
end

- - - Updated - - -

getPlayerAccountId(cid) not exists in this engine
 
Lua:
function onSay(cid, words, param)
local playerPos = getCreaturePosition(cid)
doPlayerSendTextMessage(cid, 22, "Your account number is "..getPlayerAccountId(cid)..".")
end
 
Back
Top