Jump to content

_Perfect_

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by _Perfect_

  1. 26 minutes ago, BadGhost said:

    hi dear all.

    to day i was start learning scripting MTA:SA.

     

    so at first all of us was a noob :D

    ------------

    i want to add my id in acl group [server owner]

    what i must do?

    kose nanat

  2. 1 hour ago, MrTasty said:

    Depending on whether the 7 digit number is a real number or a string containing digits.

    
    function formatNumber(number)
      if (type(number)=="number") then -- if 'number' was a number rather than a string
        number = string.format("%07d", number) -- format the number into 7 digits padded by 0 from the front if the number is less than 1000000
      end
      if (type(number)~="string") then return false end -- return a false and exit function if 'number' isn't a string at this point
      return string.sub(number, 1, 3) .. "-" .. string.sub(number, 4, -1) -- put characters 1 to 3, follow it with a dash, and characters 4+
    end
    

    thanks ❤️ 

    • Like 1
×
×
  • Create New...