Jump to content

Arran

MTA Contributors
  • Posts

    595
  • Joined

  • Last visited

Everything posted by Arran

  1. So you're saying that all those crash and bug fixes over the past half a year make MTA more unstable? I don't think so.
  2. Try a clean copy of admin panel from here: http://code.google.com/p/mtasa-resource ... s-r671.zip
  3. Well for the past 24 hours players have been crashing sometimes twenty in one go about once every hour. I've had it a few times myself and there is absolutely no logging of the crashes, no dump file, and nothing in core.log just this error message: Ofcourse there is the painful method of reverting everything (assuming it is a script and not some dodgy player) and adding some things and eventually finding the offending script with trial and error. I'd like to know what can possibly be done to find the cause of the crash without doing that? (if any) A developer would need to run the game in debug mode or something along those lines?
  4. The downloads on the main page (download button) are outdated, they're the original MTA 1.0.4 (r1854) shouldn't they be changed to a more recent version of 1.0.4? Would save new players having to download 2 or 3 nightly updates (if I remember correctly from last time I installed from the MTA main page) and also for people who want to run the MTA server, r1854 is old and they'd have to use nightly.multitheftauto.com to get a more recent version.
  5. Arran

    Windows 7

    Just keep trying. I remember it not working sometimes.
  6. Arran

    Help [plz]

    Remove the eof and remove the end. Please read a lua tutorial and actualy try to learn it.
  7. Arran

    Server help!

    The only way to have resources hosted on a website is if you have to have a directory with all the resources in there with matching up sub folders. something you cant do with a website like that, you would need FTP access to a website, so a free webhost might work.
  8. Well we had to stop our server today for windows updates. We kicked all the players (to save their data) and shutdown the server with command. But on return some of the accounts have not saved correctly, one person with 64 hours play time became 47 minutes and everything they had done in those 63 hours were lost. This has happened once before when stopping the server, the accounts do not seem to be saved properly. We did hourly backups since then but the database file doesn't seem to be saving right. Has any other servers had a problem like this before?
  9. Arran

    [REL] SQLbans

    Well I've read that the MTA team prefer it when things are scripted in resources than coded into the game so here is something else you won't need to use thats built into MTA: the ban system. As well as using SQL instead of XML (which has a bad history like when we had accounts.xml) it gives servers great flexibility over their ban system because they can edit it to exactly how they want. I would like some feedback so I can improve it however necessary, maybe it could even officially replace the inbuilt ban system... you never know! Download: https://community.multitheftauto.com/index.php?p= ... ls&id=1670 Wiki page: https://wiki.multitheftauto.com/wiki/Resource:Sqlbans To do: Support IPv6 bans later on Get feedback from MTA team and community Support IP wildcard bans Add some commands for banining/unbaning/etc Add in more options to make it more flexible Make it perfect
  10. Not entirely true actually. Coroutines don't work, all those lua_ and luaL_ functions aren't for lua, io ones don't work, os ones don't work, etc. Easiest way to check is to go in runcode and simply type the function name and if you can use it will return something like " function: 27E63500 [function]"
  11. If somebody wanted £10 they'd mow some lawns (or go to work if they have a job) for a few hours not spend weeks/months making you a "good Roleplay script" I recommend you play on an already existing server.
  12. someLabel = guiCreateLabel(0.02,0.04,0.94,0.92,"This is text.",true,tabHelp) guiSetText(someLabel, "something new")
  13. Its due to additional issues being added as its now 67% and the highest it got was around 75%. I agree with you, I think the objectives for 1.1 could be reduced that way we can enjoy the amazing features that 1.1 has already added like special skins. 1.0.4 was released on June 10th 2010 which was 7 months a go so a new version soon would be great. I'm sure it needs some testing first and I would be happy to spend hours playing 1.1 if it needs testing, we could have some public betas like there was for 1.0 or just an unofficial public beta on a nightly server even, I'm down for organizing that.
  14. crun for ind, car in pairs(getElementsByType("vehicle")) do setElementCollidableWith(getPedOccupiedVehicle(localPlayer), car, false) end
  15. Arran

    Borrow:P

    For better security you make an ACL specifically for that resource that way the resource will only have access to what it needs (account stuff (addAccount, login)) etc rather than giving that resource full admin meaning it could have hidden code which could do some really bad things.
  16. looool. Well anyway I recommend you try the scripting basics and don't worry if it looks to hard to understand because everyone had to learn lua at some stage and the only people who would have understood it straight away are those who were already familiar with programming. You want to learn the lua basics and then you'll have a general understanding of what things are, whatever you do don't jump in the deep end and look at some complicated script somebody made as it will put you off if you can't understand it. I strongly recommend learning the basics here: http://lua-users.org/wiki/TutorialDirectory to get an understanding. I've been scripting for over a year and just learnt something new today from reading that website.
  17. Yeah I had that lua code bug, perhaps somebody should look at it. There was a bug in AC detection (dont use setElementHealth inside onClientPlayerDamage) which ccw has now fixed.
  18. Do you know how many problems it would cause for the owners of servers if suddenly half their scripts stopped working because these functions would get removed? Most server owners can't script, and there really isn't much harm in them being there.
  19. Correct me if I'm wrong but the 1.1 nightlies don't have handling, you'd have to compile the handling branch to get them.
  20. function checkIfTeamRight() local team = --check my message at bottom if (team and getTeamName(source) == "Xuju Crew") then cancelEvent() end end addEventHandler("onClientPlayerDamage", getLocalPlayer(), checkIfTeamRight) Atleast have a real attempt before asking for help... --check my message at bottom Is suppost be local team = getPlayerTeam(source) but for some reason when sumbitting this message this happens... local team = getPlayerTeam" class="kw2">getPlayerTeam (source)
  21. Arran

    minclientversion

    Define not working, because it does and there is even an example for it in onPlayerConnect just one version old https://wiki.multitheftauto.com/wiki/OnPlayerConnect
  22. Arran

    minclientversion

    Judging by his screenshot he already has one as those parameters were added in 1.0.4
  23. Arran

    minclientversion

    I believe that those parameters only work for 1.0.4 and above players, therefore you can not block 1.0.3 or below that way. Instead add this to a server side script: function checkVer(nikc, ip, user, serial, clientVersion) if (clientVersion < 260) then cancelEvent(true, "Upgrade to 1.0.4 @ mtasa.com") end end addEventHandler("onPlayerConnect", root, checkVer) Thats what I use.
  24. Arran

    Anti-cheat problem

    Your script that "cancels damage between players" involves using setElementHealth within the onClientPlayerDamage event? addEventHandler("onClientPlayerDamage", getLocalPlayer(), function() setElementHealth(source, 1000) end) The above will result in being kicked from the server. If you want to disable player damage do: addEventHandler("onClientPlayerDamage", getLocalPlayer(), function() cancelEvent() end)
  25. X, Y, Z = getElementPosition(getLocalPlayer()) col = createColCircle(X, Y, 150) outputDebugString(tostring(#getElementsWithinColShape(col, "player"))) Returns 0 when it should clearly return 1, the local player. But it does not until the player has moved, so I suppose we're going to have to add a timer on every temporary col shape check and hope they moved during that time?
×
×
  • Create New...