PhantomDamn Posted May 16, 2013 Share Posted May 16, 2013 (edited) gracias ya sasuke me ayudo con todo Edited May 23, 2013 by Guest Link to comment
Castillo Posted May 16, 2013 Share Posted May 16, 2013 No, no tiene el menor sentido. Mezclaste client side y server side, ademas de que usas funciones viejas ( getClientName ). Link to comment
PhantomDamn Posted May 16, 2013 Author Share Posted May 16, 2013 Upss ... con que podria reemplazar getClientName Link to comment
Castillo Posted May 16, 2013 Share Posted May 16, 2013 Con getPlayerName como dice en la pagina de la wiki de getClientName. Link to comment
PhantomDamn Posted May 19, 2013 Author Share Posted May 19, 2013 mira solid me estuvieron ayudando... pero aun sigue sin funcionar function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..Al Servidor Estan Cargando Los Resource, sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end esta es la meta "poop" name="dxDrawTwxt" version="1.0" type="script" /> Link to comment
Renkon Posted May 19, 2013 Share Posted May 19, 2013 las comillas despues del getplayername bien gracias Link to comment
FraN-724 Posted May 19, 2013 Share Posted May 19, 2013 function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end OT: Renkon, tienes mis números en todas las posts que has hecho . Link to comment
PhantomDamn Posted May 19, 2013 Author Share Posted May 19, 2013 no sirve aun... esto deberia aparecer cuando el player valla entrando al servidor diga que los resource estan cargando Link to comment
FraN-724 Posted May 19, 2013 Share Posted May 19, 2013 intenta agregando el evento onClientPlayerJoin Link to comment
Castillo Posted May 19, 2013 Share Posted May 19, 2013 Ese script es client side, asi cuando este descargando los recursos no se vera. Link to comment
PhantomDamn Posted May 19, 2013 Author Share Posted May 19, 2013 entonces eso que sale en un servidor mas los RPG cuando uno entra dice eso.. y si se hace en server side se saldran a todos Link to comment
Castillo Posted May 19, 2013 Share Posted May 19, 2013 Podes usar las funciones de texto server side. Link to comment
Bc# Posted May 21, 2013 Share Posted May 21, 2013 Ese script nunca funcionara si no tienes definido sHeight ni sHeight, prueba con esto: local sHeight,sHeight = guiGetScreenSize() function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end Recuerda siempre definir las variables que usas. Link to comment
PhantomDamn Posted May 21, 2013 Author Share Posted May 21, 2013 inminente error ... trate de copiar de otro script con dxDrawText y sigue sin andar... -.- Link to comment
Renkon Posted May 21, 2013 Share Posted May 21, 2013 Pues eso te pasa por copiar. Porque no intentas hacerlo tu? Link to comment
Bc# Posted May 21, 2013 Share Posted May 21, 2013 Ahora que me fijo tienes mal la sintaxis de set timer intenta esto: local sHeight,sHeight = guiGetScreenSize() function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, drawTheText ) end ,10000,1) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end Link to comment
PhantomDamn Posted May 21, 2013 Author Share Posted May 21, 2013 Pues eso te pasa por copiar. Porque no intentas hacerlo tu? renkon si lees el post desde comienzo lo comence hacer yo Lol estas funciones son cliente side? onPlayerJoin onPlayerConnect gracias Link to comment
Sasu Posted May 21, 2013 Share Posted May 21, 2013 Ahora que me fijo tienes mal la sintaxis de set timer intenta esto: local sHeight,sHeight = guiGetScreenSize() function greetPlayer ( ) addEventHandler("onClientRender", root, drawTheText) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, drawTheText ) end ,10000,1) end addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) function drawTheText() dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) end El setTimer estaba bien. estas funciones son cliente side? onPlayerJoin onPlayerConnect gracias Primero que todo son eventos y segundo son server-side. Link to comment
PhantomDamn Posted May 21, 2013 Author Share Posted May 21, 2013 y si podria utilizar alguna imagen que salga atras de la barra de loading que diga lo que quiero que haga el dxDrawText? Link to comment
Recommended Posts