Jump to content

Merino

Members
  • Posts

    1
  • Joined

  • Last visited

About Merino

  • Birthday 21/11/2001

Details

  • Gang
    RolePlay
  • Location
    San Andreas
  • Occupation
    Programador
  • Interests
    RolePlaying

Merino's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Puedes usar "table.size" Useful Function de la Wiki. Aquí te dejo un ejemplo para que puedas guiarte, recuerda cambiar las variables. Saludos! function table.size(tab) local length = 0 for _ in pairs(tab) do length = length + 1 end return length end function teletransportes (player) local tabla = executeSQLQuery ("SELECT * FROM teletransportes WHERE nombre=?", getPlayerName(player)) -- Cambia el nombre de la tabla a la de tu DB local tRegistrados = table.size (tabla) if tabla then -- Comprueba si se ejecutó la consultaa if tRegistrados <= 5 then -- Si tiene 5 o menos teletransportes outputChatBox ("Tienes "..tRegistrados.." teletransportes registrados", player) else -- Si tiene más de 5 outputChatBox ("Máximo de teletransportes.", player) end end end addCommandHandler ("tp", teletransportes)
  2. Me aburro y me apetece volver a programar en MTA, tengo experiencia aunque prefiero mantener el anonimato. Solo dedicaré mi tiempo libre y no cobro nada, cualquier cosa escríbeme a DS (Merino#6256) o deja el tuyo abajo y me pondré contacto. También me interesa la idea de empezar un nuevo proyecto, si tú también tienes experiencia y te estás planteando empezar uno, estoy dispuesto a asociarme. (Experiencia demostrable; Bases de datos, Linux, Programación...) Saludos.
×
×
  • Create New...