Jump to content

gaghaufgy

Members
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

gaghaufgy's Achievements

Square

Square (6/54)

0

Reputation

  1. Does anyone have the time and motivation to help me learn how to script? I know almost nothing about lua. I want someone to teach me how to script. If you have discord it's even better!
  2. .. 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
  3. https://imgur.com/a/UOAOQBV I managed to change it but... that didn't seem to fix it... I also restarted the server and everything (created a new character so that it generates a whole new phone.)
  4. 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)
  5. Thank you Patrick, i'm experimenting on allready made scripts with the purpose of learning. I wanna learn more about scripting and stuff , one day i ll make my own gamemode from zero!
  6. 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!
  7. 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
  8. Hello MTA comunity , can someone give me / teach me how do i make a loading screen ( i want the loading screen be like when resources are loading / downloading) Thanks!
  9. Works on roleplay servers like with a car ? Like when you are in a car can you teleport you and the car too trough them?
  10. 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 ?
  11. Install NET.FRAMEWORK , DIRECT X C++ REDISTIBUTABLE it shoud work after you done all of that!
  12. What are the specs of your PC ? Have you tried to reinstall MTA and GTA SAN ANDREEAS ?
  13. gaghaufgy

    Core.dll

    Try reinstalling MTA and GTA SAN ANDREEAS!
  14. First. Have you tried to reinstall MTA? Have you tried reinstall GTA SAN ANDREEAS? Try deleting MTA and GTA SAN ANDREEAS Here is link download MTA : https://mirror.multitheftauto.com/mtasa/main/mtasa-1.5.6.exe
×
×
  • Create New...