Dangnoob
Member
- Joined
- Jun 8, 2008
- Messages
- 105
- Solutions
- 2
- Reaction score
- 12
Currently when i run this command it is return "y" as "true" It is 0 currently, how do i get it to display the number, not the true or false?? I just tried
local v = getDataInt('y') .. it didnt work :/ Thanks for any help in advance
local v = getDataInt('y') .. it didnt work :/ Thanks for any help in advance
Lua:
function onSay(cid, words, param, channel)
if(param == '') then
local x = getPlayerStorageValue(cid,69693)
local y = db.executeQuery("SELECT `currency` FROM `players` WHERE `name` = " .."\"".. x .. "\"")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, tostring(y))
return true
end
return true
end