Jump to content

Problema con 'local font'


MrXz

Recommended Posts

Hola a todos !

Tengo un problema al crear un 'font', no aparece.

¿Cual seria el problema?

local font = dxCreateFont( "font.ttf") 
    dxDrawColorText ('Map: ' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(3.3, 'font')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 2, 'font', 2, 'left') 

Link to comment

Si el archivo de la fuente existe y es una fuente valida, entonces hasta ahi deberia funcionar, ahora, el problema lo tenes aca:

dxDrawColorText ('Map: ' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(3.3, 'font')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 2, 'font', 2, 'left') 

Cuando usas una variable no tenes que poner comillas, en este caso apostrofes.

Link to comment
  • Recently Browsing   0 members

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