Jump to content

Recommended Posts

Tengo errores en esta funciones dentro de mi sistema de nivel me ayudarían a solucionarlo por favor?.

---EN EL SERVER TENGO ESTE ERROR AQUI:
getPlayerEXP = function(l_13_0)
  if not tonumber(getElementData(l_13_0, "exp")) then --
    return not l_13_0 or type(l_13_0) ~= "userdata" or getElementType(l_13_0) ~= "player" or 0 --
    do return end -- AQUI
  end 
  outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_13_0) .. "]", 2)
  return false
end

-- EN EL CLIENTE TENGO ESTE ERROR AQUI EN LAS MIMAS LINEAS:

getPlayerEXP = function(l_7_0)
  if not tonumber(getElementData(l_7_0, "exp")) then
    return not l_7_0 or type(l_7_0) ~= "userdata" or getElementType(l_7_0) ~= "player" or 0
    do return end -- AQUI
  end
  outputDebugString("Bad argument @ 'getPlayerEXP' [Expected player element at argument 1, got " .. tostring(l_7_0) .. "]", 2)
  return false
end

-- LOS ERRORES SON DE: `end`expected (to close `if` at line 197) near do

 

Link to comment
11 hours ago, MisterQuestions said:

Maybe no intentar descompilar resources que no son tuyos?

PD: Esto va en la sección de scripting en todo caso.

Lo descompile, pense que no se podia mira que intente varias veces jajaja, igual  pense que lo puse en la sección de scripting tutorial, ten en cuenta que soy nuevo aqui paciencia.

Edited by Maruchan
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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