Jump to content

smal help


WASSIm.

Recommended Posts

hi guys i have problem its show me (nil)

addEventHandler("onClientRender",root, 
        function  ( ) 
  
        days = 
        { 
        [ '0' ]    = 'SUN', 
        [ '1' ]    = 'MON', 
        [ '2' ]    = 'TUE', 
        [ '3' ]    = 'WED', 
        [ '4' ]    = 'THU', 
        [ '5' ]    = 'FRI', 
        [ '6' ]    = 'SAT', 
        } 
          day =  days [getRealTime().weekday] 
          dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) 
          end     
        end 
) 

Edited by Guest
Link to comment

Try this

addEventHandler("onClientRender",root, 
        function  ( ) 
  
        days = 
        { 
        [ 0 ]    = 'SUN', 
        [ 1 ]    = 'MON', 
        [ 2 ]    = 'TUE', 
        [ 3 ]    = 'WED', 
        [ 4 ]    = 'THU', 
        [ 5 ]    = 'FRI', 
        [ 6 ]    = 'SAT', 
        } 
          day =  days [getRealTime().weekday] 
          dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) 
          end     
        end 
) 

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...