Szerző Téma: Bug  (Megtekintve 754 alkalommal)

Bug
« Dátum: 2015. Február 09. - 16:18:48 »
0 Show voters
Sziasztok az lenne a kérdésem a  miért buggol el a szöveg ha  elinditom a scriptet 30-40 percig mutassa a szöveget de azútán már,nem miért van ez igy mta bug ?
 

function createText ( )
    local playerX, playerY, playerZ = getElementPosition ( localPlayer )     
    local playerZoneName = getZoneName ( playerX, playerY, playerZ )
    local tx,ty = guiGetScreenSize()
    local tfont = dxCreateFont(\"draw.ttf\",40)   
    local theVehicle = getPedOccupiedVehicle ( getLocalPlayer() )
    local VehicleName =  getVehicleName ( theVehicle )
   
    dxDrawText (VehicleName, tx-480, ty-80, 250, 80, tocolor ( 73,208,141, 255 ), 1.02, tfont)
    dxDrawText (playerZoneName, tx-400, ty-140, 250, 80, tocolor ( 255, 255, 255, 255 ), 1.02, tfont)
   
end
addEventHandler ( \"onClientRender\", root, createText )

Nem elérhető Xenius

  • 668
    • Profil megtekintése
Bug
« Válasz #1 Dátum: 2015. Február 09. - 20:19:33 »
0 Show voters
Custom font.
Próbáld így:
 
local tfont = dxCreateFont(\"draw.ttf\",40)
function createText ( )
    local playerX, playerY, playerZ = getElementPosition ( localPlayer )     
    local playerZoneName = getZoneName ( playerX, playerY, playerZ )
    local tx,ty = guiGetScreenSize()
    local theVehicle = getPedOccupiedVehicle ( getLocalPlayer() )
    local VehicleName =  getVehicleName ( theVehicle )
    dxDrawText (VehicleName, tx-480, ty-80, 250, 80, tocolor ( 73,208,141, 255 ), 1.02, tfont)
    dxDrawText (playerZoneName, tx-400, ty-140, 250, 80, tocolor ( 255, 255, 255, 255 ), 1.02, tfont)
end
addEventHandler ( \"onClientRender\", root, createText )

Bug
« Válasz #2 Dátum: 2015. Április 01. - 18:51:00 »
0 Show voters
Megoldódott. Zárom és helyezem.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal