PhantomDamn Posted April 22, 2013 Share Posted April 22, 2013 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
Castillo Posted April 22, 2013 Share Posted April 22, 2013 Dice que el evento ya esta puesto. Link to comment
PhantomDamn Posted April 23, 2013 Author Share Posted April 23, 2013 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
AlvareZ_ Posted April 23, 2013 Share Posted April 23, 2013 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
AlvareZ_ Posted April 23, 2013 Share Posted April 23, 2013 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
PhantomDamn Posted April 23, 2013 Author Share Posted April 23, 2013 ya edite el spawn y estoy esperando haber sino se presenta el bug del restart --------------------------------------------------------------edit-------------------------------------- siguio Link to comment
PhantomDamn Posted April 23, 2013 Author Share Posted April 23, 2013 AlvareZ_ mira esto haber ya que sabes mas de mtaserver.conf [PROTOTYPE] Gang War Server Latino /Works/Skins/Jobs/Base/faluva/ mafias 198.136.49.51 39607 50 1 39730 1 5 20 1 la ip es: 198.136.49.51:39607 slot: 50 ves algo raro? Link to comment
AlvareZ_ Posted April 23, 2013 Share Posted April 23, 2013 Hmm, No por que? mas bien la mayoría de los servers Host no muestran la IP en el mtaserver.conf Link to comment
PhantomDamn Posted April 23, 2013 Author Share Posted April 23, 2013 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
AlvareZ_ Posted April 24, 2013 Share Posted April 24, 2013 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
Sasu Posted April 24, 2013 Share Posted April 24, 2013 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
Alexs Posted April 24, 2013 Share Posted April 24, 2013 [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
PhantomDamn Posted April 24, 2013 Author Share Posted April 24, 2013 upgrades? como puedo darle upgrade a la consola.. es darle restart? Link to comment
Recommended Posts