Jump to content

eleminar error en debugscript 3


Recommended Posts

alguien me ayuda con esto:

spawnn\c_main.lua:28. addEventHandler: 'onClientRender' with this funcion is alreadu handled  

estas son las lineas que muestran el error:

 letterBox = { 
    stripHeight = screenSize[ 2 ] * .15, 
    stripAlpha = .93, -- 0-1 
    animLength = 01, -- seconds 
    animStartTick = 0, 
    animFinishTick = 0, 
    keepAnimating = true, 
     
    flyIn = function ( ) 
        letterBox.animStartTick = 0; 
        addEventHandler( "onClientRender", g_root, animateLetterBox_flyIn ); 
        setTempPedRotating( true ); 
    end, 
     
    flyOut = function ( ) 
        letterBox.animStartTick = 0; 
        setTempPedRotating( false ); 
        removeEventHandler( "onClientRender", g_root, animateLetterBox_flyIn ) 
        addEventHandler( "onClientRender", g_root, animateLetterBox_flyOut ); 
    end, 
} 

una ayuda , gracias.

Link to comment

:/ solid puede algun otro recourso o script tener algun error que de restart al spawn de 50p?

_______________________edit___________________________

ahora me muestra este error,

WARNING: spawn/s_main.lua:105 Bad Argument @'countPlayersInTeam' 
INFO: remove row1 
WARNING: spawn/s_main.lua:105 Bad Argument @'countPlayersInTeam' 
INFO: remove row1 
WARNING: spawn/s_main.lua:105 Bad Argument @'countPlayersInTeam' 
INFO: remove row1 

creo que debo eliminar la linea 105 ....

function deleteAllPlayerBlips(player) 
    local elements = getAttachedElements(player) 
    if (elements) then 
        for i, element in ipairs(elements) do 
            if (getElementType(element) == "blip") then 
                destroyElement(element) 
            end 
        end 
    end 
    print( "number of players in team: " .. tostring( countPlayersInTeam( getPlayerTeam( player ) ) ) );---- linea 105---- 
end 

estoy en bien o mal?

Link to comment

Simplemente ponlo así:

function deleteAllPlayerBlips(player) 
    local elements = getAttachedElements(player) 
    if (elements) then 
        for i, element in ipairs(elements) do 
            if (getElementType(element) == "blip") then 
                destroyElement(element) 
            end 
        end 
    end 
end 

Link to comment

Simplemente ponlo así:

function deleteAllPlayerBlips(player) 
    local elements = getAttachedElements(player) 
    if (elements) then 
        for i, element in ipairs(elements) do 
            if (getElementType(element) == "blip") then 
                destroyElement(element) 
            end 
        end 
    end 
end 

Link to comment

mierda entonces es PlayersInTeam lo del restart, vere que hago

------------------------------edit----------------------------

AlvareZ_ mira lo que vi en la consola dime que significa esto que no entiendo:

[2013-04-22 02:48:22] WARNING: spawnn/c_main.lua(Line 164) [Client] setPedFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen. 
[2013-04-22 02:48:22] Some files in 'spawnn' use deprecated functions. 
[2013-04-22 02:48:22] Use the 'upgrade' command to perform a basic upgrade of resources. 

Link to comment

La verdad no lo entendí mucho pero al parecer es algo así:

[2013-04-22 02:48:22] WARNING: spawnn/c_main.lua(Linea 164) [Client] setPedFrozen fue desaprobado y puede que no funcione en las futuras versiones. Porfavor replasarlo con setElementFrozen. 
[2013-04-22 02:48:22] Algunos archivos de el recurso 'spawnn' usan funciones Desaprobadas. 
[2013-04-22 02:48:22] Usa el comando 'upgrade' Para realizar las actualizaciones básicas de los recursos. 

Link to comment

Te dice que algunas funciones seran eliminadas y debes usar las nuevas funciones:

setPedFrozen -> setElementFrozen -- Una de las que tenes. Despues hay otras mas ( aparte de tu script ) como: 
setPlayerSkin -> setElementModel 
getVehicleNameFromID -> getVehicleNameFromModel -- Entre muchas otras. Revisa la wiki para mas informacion. 

Link to comment
[2013-04-22 02:48:22] WARNING: spawnn/c_main.lua(Line 164) [Client] setPedFrozen is deprecated and may not work in future versions. Please replace with setElementFrozen. 
[2013-04-22 02:48:22] Some files in 'spawnn' use deprecated functions. 
[2013-04-22 02:48:22] Use the 'upgrade' command to perform a basic upgrade of resources. 

Ya pensaste en usar 'upgrade' en la consola? Usas funciones obsoletas.

Link to comment
  • Recently Browsing   0 members

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