Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. WhoAmI

    [HELP] Script

    I can do that. Send me your skype in priv.
  2. WhoAmI

    [HELP] Script

    You mean /setport you are creating location of teleport. Then you can teleport there using /port. You can also turn it off using /portoff and on using /porton? Yes?
  3. Well, propably the website isn't on your WWW folder in WAMP.
  4. WhoAmI

    SQL Query

    https://wiki.multitheftauto.com/wiki/dbQuery On the bottom of site.
  5. Nah, it's just heavy thing to server.
  6. isElementWithinAColShape(theCuffed) isElementWithinColShape(theCuffed, col)
  7. Okey, after changes code works fine. We will see if there won't be any NT anymore.
  8. WhoAmI

    SQL Query

    I think that I know what is wrong. local result = dbPoll(dbQuery(dbHandler, "SELECT `??` FROM `stats` WHERE `account`=?", column, accName), -1) I read somewhere about those double question marks.
  9. Code have to look like this? http://upload.mtasa.com/u/968738946/test.lua_
  10. http://upload.mtasa.com/u/654940218/resources.rar_
  11. function refusePoly(thePlayer) toggleAllControls(thePlayer, true) if ( isElementWithinColShape ( thePlayer, col ) ) then -- do something end end addCommandHandler("rp", refusePoly) Replace 'col' with collision that you've made before.
  12. For example local col = createColCircle ( x, y, radius ) if ( col ) then for _, player in pairs ( getElementsByType ( "player" ) ) do if ( isElementWithinColShape ( player, col ) ) then -- do something end end end
  13. Well, while creating colshape just loop all players and check if there are in created colshape.
  14. WhoAmI

    SQL Query

    Well, I don't know if it cause anything but it is good to try: "SELECT `?` FROM `stats` WHERE `account`=`?`" Also make sure that 'column' gives correct value and there is such a column in database. Check if DB connection works fine, too.
  15. That is what I have been looking for. Thanks.
  16. Don't get you. How can I set element data to vehicles spawned from .map file?
  17. Got it. http://snag.gy/0A5XA.jpg
  18. Well, it's hard to do, tho. This network trouble last only for a moment, but I'll try to do that.
  19. Well, but it does return all elements, even those not spawned from .map file.
  20. Alloha, Is that any way to respawn vehicle which is spawned only from .map files? Not exactly one file, but whole in the server.
  21. MrTasty, I think that your idea is the best one. Thanks for advice.
  22. Why not, I have some time. Send my IP in priv. And add xmlSaveFile after ending a loop, not inside. Should look like this local teamName = getTeamName(team) local xmlFile = xmlLoadFile("teams.xml") local children = xmlNodeGetChildren(xmlFile) for i,node in pairs(children) do local attribute = xmlNodeGetAttribute(node, "name") if attribute == teamName then xmlDestroyNode(node) end end xmlSaveFile(xmlFile)
  23. Well, put outputChatBox ( attribute ) after attribute variable and check what it outputs.
×
×
  • Create New...