Well i have this code , but it seems it doesn't working.
local root = getRootElement()
local screenWidth, screenHeight = guiGetScreenSize()
local player, accountName = "", ""
function dxLogin()
dxDrawText( getPlayerName(player).." has logged into "..tostring(accountName), 354, screenHeight-703, screenWidth, screenHeight, tocolor ( 0, 255, 0, 255 ), 2, "pricedown" )
end
function dxLogout()
dxDrawText( getPlayerName(player).." have been logged out "..tostring(accountName), 354, screenHeight-703, screenWidth, screenHeight, tocolor ( 0, 255, 0, 255 ), 2, "pricedown" )
end
This is not the whole code.
I have errors on line 6 and 10.
attempt to concatenate upvalue 'accountName' (a nil value)