50p Posted April 29, 2013 Posted April 29, 2013 dxDrawText( "No. of players online: " .. tostring( #getElementsByType( "player" ) ), 10, 300 );
papam77 Posted April 29, 2013 Author Posted April 29, 2013 dxDrawText( "No. of players online: " .. tostring( #getElementsByType( "player" ), 10, 300 ); Error: ')' expected near ';' ------------------------------------------------- -- Texts ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) function RelativeToAbsolute( X, Y ) rX, rY = guiGetScreenSize() local x = X*rX local y = Y*rY return x, y end addEventHandler("onClientRender",getRootElement(), function( ) local x,y = RelativeToAbsolute(0.00, -0.90) dxDrawText("Choose an arena",x,y,rX, rY, tocolor(255, 255, 255, 255), 2.50, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText( "No. of players online: " .. tostring( #getElementsByType( "player" ) , 10, 300 ); end ) I wanna add this text to Choose an arena but on down monitor side
csiguusz Posted April 29, 2013 Posted April 29, 2013 dxDrawText( "No. of players online: " .. tostring( #getElementsByType( "player" ) ), 10, 300 ); A ")" was missing to close tostring.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now