Jump to content

gaghaufgy

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by gaghaufgy

  1. .. i ll update you if it works

    Nope still doesn't work , the zero doesn't show up it's only 76(and the rest of the random numbers) :(

    This is the part of the script i edited

            local attempts = 0
            local itemValue = 1
            while true do
                attempts = attempts + 1
                itemValue = "076" .. math.random(1000000, 9999999)
                
                local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'")
                if mysql:num_rows(mysqlQ) == 0 then
                    mysql:free_result(mysqlQ)
                    break
                end
                mysql:free_result(mysqlQ)
            end
            exports.global:giveItem( client, 2, itemValue )

            exports.anticheat:changeProtectedElementDataEx(client, "dbid")
            triggerClientEvent(client, "accounts:characters:new", client, 3, tonumber(id))
        else
            triggerClientEvent(client, "accounts:characters:new", client, 2, 2)
        end
    end

    this is a photo of the table structure :

    https://imgur.com/a/YgQbObe

  2. This is what i did

            local attempts = 0
            local itemValue = 1
            while true do
                attempts = attempts + 1
                itemValue = "076" .. math.random(1000000, 9999999) --I edited here.
                
                local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'")
                if mysql:num_rows(mysqlQ) == 0 then
                    mysql:free_result(mysqlQ)
                    break
                end

    For some reason the number "0" doesn't appear

    the number looks like this : 76(and the rest of random numbers)

  3. 9 minutes ago, IAN21 said:

    Yo, wait. This is a leaked resource. Please, don't ask for help with leaked scripts.

    Let the kids make servers :(

    I agree the script is leaked.
    If you really wanna start a MTASA server you need to build it from nothing.
    I see lots and lots of posts with the old Owlgaming gamemode , come on guys , i'm tired of seeing every server in my country with the same gamemode , build something original!

    • Sad 1
  4. Ok so , i wanna generate a phone number with 10numbers

    the first 3 numbers i want them to be 076 , and the rest randomly generated , and the whole number to have 10characters , not more , not less!
    I've got this in my script

     

            local attempts = 0
            local itemValue = 1
            while true do
                attempts = attempts + 1
                itemValue = math.random(311111, attempts < 20 and 899999 or 8999999)
                
                local mysqlQ = mysql:query("SELECT `phonenumber` FROM `phones` WHERE `phonenumber` = '" .. itemValue .. "'")
                if mysql:num_rows(mysqlQ) == 0 then
                    mysql:free_result(mysqlQ)
                    break
                end
                mysql:free_result(mysqlQ)
            end

  5. Hello! When i want to add a new interior , i get this error in console!

    [2019-05-25 15:37:43] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"]
    [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"]
    [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"]
    [2019-05-25 15:37:49] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value)
    [2019-05-25 15:37:58] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"]
    [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"]
    [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"]
    [2019-05-25 15:38:08] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value)
    [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:885: call: failed to call 'global:isPlayerFullAdmin' [string "?"]
    [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:926: exports: Call to non-running server resource (official-interiors) [string "?"]
    [2019-05-25 15:38:13] ERROR: interior-system\s_interior_admin.lua:927: attempt to index local 'interiors' (a nil value)
    [2019-05-25 15:38:56] ERROR: logs\s_logs.lua:105: call: failed to call 'mysql:lazyQuery' [string "?"]

     

     

    Any ideeas how to fix it ?

  6. Hello , i just got jailed on a MTA roleplay server for some reason. And the time was like 30 minutes.

    I was getting bored standing there to wait so i oppened CS:GO and i injected a cheat in CS:GO with DLL injector (MTA WAS IN TASKBAR)

    After 30 minutes i closed CS:GO and i oppened MTA again and it says i got banned for using DLL injector.....

    I doesn't used it to MTA , i used it to CSGO.....

    So....... help me.

×
×
  • Create New...