Jump to content

..:D&G:..

Members
  • Posts

    1,028
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ..:D&G:..

  1. Lool, cum îl cheamă pe puști? =]]]]]]]]]]]]
  2. Sorry, but you lot don't get it.. I don't need the IDs, I want to know how to use a word in the cmd and numbers in the DB. For exaple in the command I wirte /cmd house, and in the mysql database I want it to be a number (that I put in the table) local models ={ casav = 1273 casaa = 1272 sacbani = 1212 inima = 1240 armura = 1242 info = 1239 dolar = 1247 pastila = 1241 stea = 1247 gta3 = 1248 bomba = 1252 camera = 1253 craniu = 1254 bani = 1274 bluza = 1275 disk = 1277 craniu2 = 1313 statue = 1276 parasuta = 1310 sageata = 1318 drog = 1279 } So, from this table I want to use the words instead othe PICKUP IDs, E.G. /cmdcreate gta3. All the pickups for me save in a mysql database, so in the DB i won't want to have the word, but I want the ID, which I've put on the table, but I don't know how to do this! How to use the word in the cmd and save in the DB as the ID ^
  3. Can't I do like a table where I can use the command like this: SYNTAXA: /addpickup [model] [message] /addpickup house This is a house pickup And the table to look something like this: local models = { house = PICKUP ID info = PICKUP ID dead = PICKUP ID friends = PICKUP ID bluehouse = PICKUP ID arrow = PICKUP ID } I am not really good at tables and getting the data from one. What I want to do is to put the word instead of the ID in the command and to put in the mysql database the ID of the pickup. In other words I want to use words in command and numbers (IDs) in database
  4. No.. I want to know a function or something to GET the ID, and put it in another function, like createPickup = ( x, y, z, type, MODEL....) And I want to get the model ID so I can put it in MODEL What I want to do is a command where you can make pickups, something like /addpickup [model] [message] I done everything, but I want to know how to get the model, like a house pickup, or info, so I can make a local like local dimension = getElementDimension
  5. Hello, I want to get how to get the model ID of a pickup, like for the INFO pickup the model ID is 1239.
  6. Hey, I recently made a hud, and with the help of some scripters from the forum, I made it so people can toggle it. I don't know how to make it hide when people join, so they have to type "/showhud" for the hud to appear. local renderHud = function () local munitie = getPedTotalAmmo ( localPlayer) local clip = getPedAmmoInClip ( localPlayer) local IDarma = getPedWeapon(localPlayer) local arma = getWeaponNameFromID(IDarma) local viata = getElementHealth (localPlayer) local armura = getPedArmor (localPlayer) local bani = getPlayerMoney()-- "thePlayer" this shouldn't be there. -- put your dx stuff here-- -------------------------------- end local handler = true addEventHandler("onClientRender",root,renderHud) addCommandHandler("showhud", function () if handler then removeEventHandler("onClientRender",root,renderHud) handler = false else addEventHandler("onClientRender",root,renderHud) handler = true end end) I tried to change the local handler = true into local handler = false but no luck... any ideas?
  7. As always.. when you need more help, no one helps you -_______-
  8. When I or other player tries to join my server, I get this error.... Sometimes I also get this error
  9. https://wiki.multitheftauto.com/wiki/Main_Page Faci un folder si il numesti cum vrei tu (gate-system de exemplu) Dupa faci un fisier .lua (script.lua) si acolo pui codul. Dupa faci un alt fisier meta.xml (sau ia un exemplu de a un alt script). In fisierul meta.xml pui: <meta> <info author="KinG28" type="script" name="Poarta" /> <config src="server.lua" type="server"/> </meta> P.S. Trebuie sa ai server.lua si meta.xml amandoua in folderul gate-system ca sa mearga scriptul. Apropo, de ce ai gate1 in prima linie? Sunt doar curios )
  10. Hey, how do I put an image for every mod?
  11. Oh, so its like: mtasa.homo.com bla.homo.com xDD
  12. I said it worked, but thx anyway I only posted the last reply if someone might have the same problem and look at this for a solving.
  13. Didn't work, but it did when I did this: local font = dxCreateFont("font.ttf")
  14. How can I set the a custom font for a dxDrawText? dxDrawText( title, x, 0, x + width, y + 18, tocolor( tcolor[1], tcolor[2], tcolor[3], tcolor[4] * alpha ), 0.6, "bankgothic", "left", "top", true, true, true )
  15. Thx You guys are good scripters, I can't wait the day when I will be like you xDD
  16. It worked thx So I don't make another post... I will post here function esteJucatorulAdmin( thePlayer ) if ( isElement( thePlayer ) ) then local iaStatusulStaffului = getElementData(thePlayer, "esteJucatorulAdmin") if ( iaStatusulStaffului ) then return true else return false end else return false end end else return false end The 'return false': attempt to concatenate a boolean value
  17. Hello, I want to convert a number into a number with commas, but I keep getting the error string expected got nill... function transformaNumar( theNumber ) local numaruldefacut = theNumber while true do numaruldefacut , p = string.gsub(numaruldefacut , "^(-?%d+)(%d%d%d)", "%1,%2") if (p==0) then break end end return numaruldefacut end
  18. Is there any way I can download and play MTA for GTA 3 or VC or even making a server?
  19. I don't know what the hell happened, but today someone hacked the MTASA links, community etc... When you search them some dogs come up
  20. Hey, at school, didn't have anything better to do, so I checked for mtasa subwebsites and I found this funny thing. http://www.roleplay.mtasa.com
  21. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=8580 DONE
  22. Hello, can someone explain to me what the error string expected, got nil means? I see that this accures on many scripts. For example I got an error like bad argument #1 to 'gsub' (string expected, got nil)
  23. I don't know, someone gave it to me -.- But is it?
×
×
  • Create New...