Jump to content

Problema con 'local font'


MrXz

Recommended Posts

Posted

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') 

430x73.png
Posted

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Seria asi entonces?

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

430x73.png
Posted

Exactamente.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Dice que la fuente esta mal.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

La verdad es que no es la fuente el problema, el problema es la libreria "textlib", no soporta fuentes propias que yo sepa.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

asi es solid, debes configurar dicho archivo para que el client del race soporte fuentes inportadas

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

  • Recently Browsing   0 members

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