Hey all, i am trying to make a script that shows u when u have a new message on the website when u login.
Ive made this:
But I got much errors and i think this isnt working for TFS 3.0, who can help me ?
Ive made this:
PHP:
local rows = assert(con:execute("SELECT * FROM `site_messages` WHERE `to_player` = " .. getPlayerGUID(cid) .. " AND `readed` = 0;"))
if (rows:numrows() > 0) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've got "..rows:numRows().." unreaded messages, please go to our website kybia.com to read them!")
end
But I got much errors and i think this isnt working for TFS 3.0, who can help me ?