Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. Why don't you check if you get any errors? At line 7, the code doesn't seem to be finished or messed up. Make sure you don't get any errors. Line 8 also doesn't seem to be done. It will work if you'll keep an eye on all these brackets and "if ... then" not just "if ... ".
  2. It seems like MTA bug. Maybe it's caused by synching vehicles when player leaves to let the vehicle be in the same place when player leaves the server so that other players can see it there, but IMO it should respawn the vehicle even when player was in it before he/she left.
  3. LMAO, If you want answer from someone specific just ask him not here because here, everyone try to help. And again LOL. If it's client-side why did you put 'type="server"'? If you try to query server's SQLite database from client-side script then no wonder why it doesn't work.
  4. Why don't you look up the wiki? Start making resources. Take a look into other resources how to make one. Look at the events that are available for you and use them. - http://development.mtasa.com/index.php? ... _Functions - http://development.mtasa.com/index.php? ... ing_Events
  5. In our old SE (Script Editor) we had support for setting up the server and we have plans to add it again. And the name, at the very start we named it MTA Lua Editor, but we thought it's more then just editing lua files, so we called it Script Editor. As we go further we may even change it to simply MTA Editor. We'll stick to Script Editor for now.
  6. If you haven't changed anything (inside the code and table structure) and you run it on nightly build then I guess executeSQLSelect needs some testing.
  7. I added it for lulz Cry baby cry, because you gonna die! Don't worry because KillMe is executed first
  8. Making zombie mod client-side isn't hard, the tricky part is to synch them. Try to do it yourself scareface.
  9. Shell integration - this is a good idea and we'll do our best to implement it.
  10. Thanks for your replies. It seems that you all like the idea. It will be for 1.0 it may have DP2.x functions and events too.
  11. Unofficial MTA Script Editor Current release: 0.3 (4851) DOWNLOAD 0.3 (4851) Very anticipated application is now released! I'm asking every user to report bugs in this topic. Before you report though, please make sure it hasn't been reported already. You can now view our bugs on the mantis (bug tracker), HERE. If you can see MTA bugs but not ours, just change the "Project" (top right) to "Multi Theft Auto: Script Editor". I think this page was getting way too long so I moved it to the wiki. There is no change in the way I keep you updated though. I'll keep updating the changelog here and the download links. If you're new here and wanted to find out what this tool is about you can visit the wiki page here: https://wiki.multitheftauto.com/index.php?title=MTASE Changelog:
  12. Why don't you debug it? Do some outputs and see why you get this error... It seems that executeSQLSelect doesn't return what it meant to. As I said, make some outputs and see why you get error.
  13. 50p

    help me please

    What pills did you take? Even if you don't know Lua but C++ you should know what this code does and that "cop" has got nothing to do with those error messages. So, I assume you know some very basic stuff in C++ or just started to learn it. Also, don't scream at anyone if you're not 100% sure of what you're saying. Pulsarkk, you attached teamName function to "onResourceStart" event but this event does not trigger function with player element as the first parameter. You have to pass "player" element to function getPlayerTeam. Attach the function to some event that calls a function and passes player element to the call. What are you trying to do, anyway? Because it's hard to give you advice if we don't know what this code is supposed to do.
  14. It doesn't support PHP because PHP module would have to be installed... that would increase the size of MTA itself and wouldn't be simple to use. You should be able to use PHP SDK to do what you want to do on your website which supports PHP.
  15. A little update... This is a texture of evil clown I made: http://i40.tinypic.com/6ishth.png Watch the clown, he's angry and hungry!
  16. Because 2nd parameter is not the red color but the element who's meant to see the message. Check this line (it send message to all the players, root element): outputChatBox( "I N F O: " .. text, getRootElement(), 0, 255, 0 )
  17. It only shows weird time when you start before the start? If so, try not to show that time at all or you should work out the difference between "when it's meant to start" and "when you started", eg.: -- this somewhere in the trackStart function colHitTime = getTickCount() --this somewhere where you launch the car local diff = getTickCount() - ( colHitTime + 6000 ) -- this is difference between car's start and the end of the countdown outputChatBox( "*Reaction time: " .. tostring( diff ) ) With this code you should see negative value if you launch before you're allowed to and positive if you launched after the green light... Notice the 6000 I wrote there. It's the time of red and yellow lights (in total). For instance you have red light for 3000ms and yellow light for 3000ms (3000+3000=6000)... You have to add those 6000ms to see if player accelerated before the countdown reached 0 (green light). I don't know if that's your problem... if not, explain a bit more and paste some code.
  18. 50p

    Need a Scipter

    If you want to have better server than that, then you should learn to script and be the head scripter of your own server and then people might help you. If you come here and ask people to make scripts and host a free server for you then chances that someone will help you are very low.
  19. OK, np. I hope you've learnt something.
  20. It seems that server-side script didn't start. Didn't you get another error? addEvent never failed for me... and I doubt it failed for you. Usually you get an error that server triggered clientside event but event is not added clientside. It happens when you try to triggerClientEvent in onResourceStart because player has to download script and addEvent before server triggers that event. Make sure server-side script started by outputting some text.
  21. You should get rid of most of the timers, especially those lights timers. You've got tens of timers which could cause server to crash, if they are all used at the same time.
  22. Check if veh is not nil or false and if it's not then proceed with the vehicle functions. You should know how if statement works by now so I'm not going to explain it to you... if you don't know how it works then I'd suggest you to start learning by looking into other scripts, wiki or even google. About the falling off the bike... If you're using DP2.x then there is a function canPlayerBeKnockedOffBike if you're using nightly build replace Player with Ped (in the function name).
  23. I haven't really used this with nightlies but I sure will update it once 1.0 comes out because I don't really see any good reason to update it now. First of all, MTA changes day after day, they change function parameters, function names, etc. Once they stop changing too many things I'll make a proper update for it so it should work with 1.0 too. Honestly, I don't know what could cause that script not to work with nightly. Anyway, if it works for you now then I'll just wait for bug reports that people may find. Have fun.
  24. Could you explain step by step what you did? Have you changed the code? It seems like you did. You must have changed some code which cause those error messages to appear. Why I think that is the case? Well, I looked in the "bank.script.server.lua" at line 31 and it can't be nil... regName is what the error complains about. According to executeSQLSelect on the wiki, this function doesn't return "nil" value in any case. Returned value can be a table or false (boolean), I do a check if the regName variable is bool at line 27. So I don't know how you managed to get those errors... Nobody has had an issue with the script since the last release (it's been long). BTW, what MTA version you're using? Is it nightly build or DP2.3?
  25. 50p

    Modifying scripts

    That's why I explained it to you in detail 2 posts above... I wouldn't recommend you to use zipped resources if you're developing because you'd have to update the new file inside the zip every time you change something, so to speed up the progress use folder resource. When you save the changes you made the file is updated and all you have to do is just "restart ".
×
×
  • Create New...