Ecstacy
Mothafuckaaa
Hey,
I'm trying to retrieve an INT value out of my database, though when I use it in a string I get the following error:
http://piclair.com/mcvo9
If anyone could help me how to fix it, it would be much apprecitated!
Script:
I'm trying to retrieve an INT value out of my database, though when I use it in a string I get the following error:
http://piclair.com/mcvo9
If anyone could help me how to fix it, it would be much apprecitated!
Script:
Code:
function onSay(cid,words,param)
local uid = getPlayerGUID(cid)
local stats = {
getCreatureHealth(cid),
getCreatureMaxHealth(cid),
getPlayerMana(cid),
getPlayerMaxMana(cid),
}
local r_amount = db.getResult("SELECT `rebirth` FROM `players` WHERE id='"..uid.."'") --[[ Rebirths ]]
local text = "----------------\nCurrent statistics\n----------------\n\n"
text = text..'Current Health: '..stats[1]..'\n'
text = text..'Maximum Health: '..stats[2]..'\n\n'
text = text..'Current Mana: '..stats[3]..'\n'
text = text..'Maxiumum Mana: '..stats[4]..'\n\n'
text = text..'Rebirth Amount: '..r_amount
doShowTextDialog(cid,2463,text)
return TRUE
end
Last edited: