MrXz Posted July 14, 2012 Posted July 14, 2012 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')
Castillo Posted July 14, 2012 Posted July 14, 2012 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. Education is the most powerful weapon which you can use to change the world.
MrXz Posted July 14, 2012 Author Posted July 14, 2012 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')
Castillo Posted July 14, 2012 Posted July 14, 2012 Exactamente. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
MrXz Posted July 14, 2012 Author Posted July 14, 2012 No salio nada y puse /debugscript 3 y me encontre con esto:
Castillo Posted July 14, 2012 Posted July 14, 2012 Dice que la fuente esta mal. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
MrXz Posted July 14, 2012 Author Posted July 14, 2012 Tratare de revisar la fuente. Gracias por todo, ahora ya aprendí a configurar bien la fuente
Castillo Posted July 14, 2012 Posted July 14, 2012 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. Education is the most powerful weapon which you can use to change the world.
BorderLine Posted July 14, 2012 Posted July 14, 2012 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
Recommended Posts