Jump to content

(Ayuda)error attemp to call global 'getPlayerIP'(a nil value


zudokuxD

Recommended Posts

function Mensaje() 
outputChatBox("Presiona F7 para abrir la tienda!!!",0,254,59) 
outputChatBox("Registrate Para Guardar todo tus Datos \"{SMILIES_PATH}/icon_smile.gif\" alt=\"\" title=\"Smile\" />",249,252,1) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), Mensaje) 
  
function onresourceStart () 
  bindKey ("F7", "down", UserData) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) 
  
  
function UserData() 
    local PlayerName = getPlayerName ( getLocalPlayer() ) 
    local PlayerIP = getPlayerIP() 
    local PlayerSerial = getPlayerSerial() 
    local PlayerMoney =  getPlayerMoney( source ) 
    guiSetText ( Jugador, "Jugador.:[ "..PlayerName.."]:.") 
    guiSetText ( IP, "IP.:[ "..PlayerIP.."]:.") 
    guiSetText ( Serial, "Serial.:[ "..PlayerSerial.."]:." ) 
    guiSetText ( Dinero, "Dinero.:[ "..PlayerMoney.."]:.") 
end 
  

Link to comment

Intenta usar esto:

  
function getPlayerIPandgetPlayerSerial() 
serial = getPlayerSerial(source) 
ip = getPlayerIP(source) 
setElementData(source,"Serial",serial) 
setElementData(source,"IP",ip) 
end 
addEventHandler("onPlayerLogin",getRootElement(),getPlayerIPandgetPlayerSerial) 
  

Y luego en vez de poner getPlayerSerial y getPlayerIP en el Client-side usa getElementData

Link to comment
  • Recently Browsing   0 members

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