Jump to content

Remp

Members
  • Posts

    210
  • Joined

  • Last visited

Everything posted by Remp

  1. Remp

    [REL] Snow 1.0.3

    Version 1.0.3 uploaded. This fixes an error so the snow will work on the latest mta, please update to use this on 1.1 (or if you can script and want to just update yourself, lines 285/286 in snow.lua: remove the penultimate argument in isLineOfSightClear, 'true')
  2. line 191 in panel.lua, move the double click event handler into the function that you create the gui in. Currently you are trying to add an event handler onto a gridlist that doesn't yet exist Do '/debugscript 3' in-game (you need to be logged in) and you will see these errors for yourself
  3. Wasn't doing anything in particular when these happened, just driving around the airport http://www.sendspace.com/file/oyo9co
  4. I've had a similar problem for a while too, logging in to forum.multitheftauto.com never saves the login, but like jhxp said using forum.multitheftauto.com does (tried clearing all related cookies but nothing changes). This wouldn't normally be that annoying but the forum link on the homepage goes to multitheftauto rather than mtasa, so whenever i use that i have to log in again
  5. I'm not sure about disabling default teamchat, but teamchat messages can be canceled in onPlayerChat, meaning you could make it do whatever you wanted to without touching the binds If you want to bind the chatbox to another key, this might be a good place to start
  6. If you don't unzip it the output file is available from the resource-cache, in the usual place
  7. Updated to 2.4.1: - fixed superfluous label settings - added gridlist item text and colour options - the editor now attempts original image loading before reverting to mtalogo.png - added scrollpanes and scrollbars (really just placeholders, functionality is very limited) - fixed dx text alignment - fixed code output date - when changing dx text the old text now fills in correctly - fixed a few code output bugs I tried adding the scrollbars and scrollpanes but they currently don't do much other than move/resize, it's mostly for the convenience of being able to visually design them. There are a few outstanding bugs with undo/redo and loading existing scrollpanes/bars from other gui's, but I cant see a way to fix these. Getting them this far was more of a struggle than i expected and any proper support isn't really possible with current mta bugs (this also applies for combo boxes, which i won't even attempt to add)
  8. - the images are changed based on the assumption that you haven't replicated all your own images into the guieditor/images folder, modified their paths in the code and added them to the meta. I could perhaps attempt to load original images first and replace if it fails - i think you're right about the dxtext, it was probably just a case of it being too much work at the time to be worth it - http://bugs.mtasa.com/view.php?id=5090 - i have been hoping this would get fixed so i could add scrollpanes/scrollbars, but its been a while with no activity. Could probably 'fix' them in the same way i do dx stuff (mask them with a gui label to catch the mouse activity and just pretend its really a scrollpane) but its not very nice and much harder to work with - gridlists are just not very easy to manipulate in-game (with mouse click-through problems and so on), but its been a while since i looked so i'll try again - Could you be more specific about share? it uses the same code as the editor does, so it shouldn't be any more buggy than normal saving or loading is Thanks for the feedback, i will look into these when i can
  9. then can we see it? we can't really help you with the problem without the code thats related to it. As far as i can tell all the code you posted is about creating the point, not looking it up
  10. that message isn't output anywhere in the code you posted
  11. The second parameter for addCommandHandler is the command name, so playerSource in your god command isn't a player (its "god"). You need to use thePlayer instead (because the first parameter is the player that typed the command) function cancelalldamage (attacker, weapon, bodypart, loss, thePlayer, playerSource) It doesn't matter what you write in there or what you call each thing, the value it holds won't change (you could call them 'apple, banana, pear, orange' and it would still represent the attacker element, the weapon id, the bodypart id and the loss). It's only passed 4 parameters so that's all there is, you can't add more to the end like that The player that is being damaged is 'source' addCommandHandler("god", function (thePlayer) setElementData ( thePlayer, "godmode", true ) addEventHandler ( "onClientPlayerDamage", getRootElement(), cancelalldamage ) end ) function cancelalldamage ( ) godonoroff = getElementData ( source, "godmode" ) if ( godonoroff == true ) then if getElementDimension ( source ) == 0 then cancelEvent() end end end
  12. I don't really understand the problem, what do you mean by 'the job is unable to find the location'? do you actually have a function called getDeliverypoint? where is the 'dpoints' table filled with data?
  13. function load ( player, command, index ) index = tonumber(index) -- anything passed from a command is a string, so convert to number if not index then -- if its not a valid number return outputChatBox("Please enter a valid index.", player) -- tell the player and end the function end local nick = getPlayerNametagText(player) local xmll = xmlLoadFile("data/ovners.xml") instructionsnode = xmlFindChild ( xmll, nick, index ) end addCommandHandler ( "command", player, load ) you also don't need to do ""..nick.."", you can just do 'nick'
  14. yep, thanks, looks like a lot of community links have been broken changed to a working one
  15. there are no player id's in mta, players are elements you could write your own id system if you particularly wanted, or get one from the community
  16. findPlayer returns 2 values (when successful), the first goes into 'player' and the second into 'playerName'
  17. the teleport window shows at startup because you arent hiding it when you create it: function createTeleportWindow() ... guiSetVisible(teleportWindow,true) end change that to false and it will be hidden when the resource starts your A69 teleport button variable is called 'teleportButtonA96', but you reference it later (line 71) as 'telportButtonA69', missing an 'e' and swapping 96 for 69 the rules window timer doesnt work because you missed out the part where you actually create the timer: https://wiki.multitheftauto.com/wiki/Int ... ng_a_timer
  18. you can use GUI in setElementData, but you cant sync it because its clientside only
  19. of course you can use elements as element data. the only elements that won't work are things like client-side elements (GUI, etc) but even then, its fine as long as synchronize == false https://wiki.multitheftauto.com/wiki/Element_data
  20. Nope http://bugs.mtasa.com/view.php?id=5090 (the title should actually say scrollbars not progress bars but i cant change it)
  21. I dont think its you, http://bugs.mtasa.com/view.php?id=3484 i remember playing with them a while ago and they were broken then too
  22. Remp

    [REL] Snow 1.0.3

    Version 1.0.2 uploaded - added a horizontal jitter effect to the snow to give it more energy (can be toggled in the settings / via the exports) - some misc performance improvements (which pretty much counter the jitter, so this version should be roughly as intensive as the last) - changed to use dxDrawImageSection, so this version only works with mta 1.0.4+ (so only run it on your server if you enforce 1.0.4 clients)
  23. You cant destroyElement on a player why not? whats wrong with it?
  24. I dont think there is such a thing as 'despawned'. When you join a server with no resources running and get a black screen, if you use runcode to fade the camera and set the local player as the camera target, your character is just frozen at 0,0,0. You are always spawned in the world, you just arent looking at yourself
  25. use guiBringToFront on the edit box
×
×
  • Create New...