Jump to content

OnlineCheater

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by OnlineCheater

  1. Oh ye, I just noticied it was setElementHealth sry, your code should work normally then.
  2. I think 1Lol1's code @line6 is wrong because second argument of setElementData or getElementData is the information which you need to know, it's like: getElementData(player, "data") or setElementData(player, "data", value) Your problem may come from another line but debugscript understands it differently, I can't help you since I don't know how is done the whole script which you're using..
  3. Hey all, I actually wonder how to remove a piece of text, I'm gonna give you examples: For example I want to show a list of maps, those maps contain tags and i want to remove those tags only from the whole name. I know it's a string.gsub or something, another string maybe, I don't remember and that's why I'm asking you. Well, for exemple those mapnames: "/ABC/ Mapname1" "/DEF/ Mapname2" "/OEHSHE/ Mapname3" "/HSIUXOP/ Mapname4" So here is my question, how to remove those tags between / /, should I create a table with all the tags and then do something like tableName = {"/ABC/", "/DEF/", "/OEHSHE/", "/HSIUXOP/"} for i, v in pairs(tableName) do if string.find(mapname, "v") then mapname = mapname:string.gsub(v, "") end end That's all I wanted to know, thanks in advance!
  4. Alright thanks, I'm currently trying to use XAMPP's MySQL so when I click on the MySQL Admin button of the Control panel, http://localhost/phpmyadmin/ opens but there's nothing, just a white screen. There should be a content but there's nothing. How can I fix this?
  5. Hey everyone, I was just wondering if it was possible for me to create a database ( MySQL) in my own computer which is working with windows 10. So then I would use it to save the data related to MTA scripts from my home server... Could you just tell me how can I do this please, I've been checking this: https://wiki.multitheftauto.com/wiki/DbConnect So what do I have to add as Required Arguments? I mean for example: That's all I need to know, I hope it's possible to do and if there's a tutorial anywhere, please inform me about it. Thanks in advance!
×
×
  • Create New...