John_Scott Posted January 6, 2013 Share Posted January 6, 2013 I set the custom text style on my spwctatort script and the server write an eror to this line: dxDrawText (s_Spectators, 10, textY, x, y, tocolor(255, 255, 255, 255), 0.6, myFont, 'left', 'top', false, false, false, true) The "myFont" lne: local myFont = dxCreateFont( "font.ttf", 24) Error: What can i do? Thanks for help! Link to comment
Anderl Posted January 6, 2013 Share Posted January 6, 2013 Show meta.xml. And what OS are you using? Are you sure "myFont" is declared in the same scope as where you are using the variable? Link to comment
John_Scott Posted January 6, 2013 Author Share Posted January 6, 2013 I added the font.ttf to meta.xml. I use Windows 7 Ultimate x64 Link to comment
John_Scott Posted January 6, 2013 Author Share Posted January 6, 2013 Alreready successed solve the problem. Thanks! Link to comment
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