Jump to content

HELP :(


1LoL1

Recommended Posts

How to fix this error please?

local day, month, year = getRealTime() 
dxDrawText(""..day.."."..month.."."..year, screenWidth*0.750, screenHeight*0.100, screenWidth*0.988, screenHeight*0.089, tocolor(50, 206, 50, 255), 1.70, "sans", "left", "top", false, false, false, false, false) 

ERROR: test\client.lua:21: attempt to concatenate local "year" (a nil value)

Link to comment
  
local realTime = getRealTime() 
local day, month, year = realTime.monthday, realTime.month+1, realTime.year+1900 
  
dxDrawText(day.."/"..month.."/"..year, screenWidth*0.750, screenHeight*0.100, screenWidth*0.988, screenHeight*0.089, tocolor(50, 206, 50, 255), 1.70, "sans", "left", "top", false, false, false, false, false) 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...