Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. im not talking about debugscript read again every step (which means generally "every IF") put outputChatBox.. you will know on which "if" it fails
  2. debug? on every step put some outputChatBox that will print every variable
  3. better use https://wiki.multitheftauto.com/wiki/OnMarkerHit no need for checking this client-side just to trigger server event, he needs to take money/set hp anyway
  4. if (getElementType(element)=="player")
  5. no, better you tell us what exactly you want. easier.
  6. just add it.. and dont pm ppl without reason, i think 90% of us dont want asking for help via pm
  7. just a question - how old are you?
  8. dzek (varez)

    timers

    addCommandHandler("mario", function () -- btw: i dont see a point in this, first one will be enough, you are probably not able to see the effect of 2nd one setTimer( randomVehColors, 250, 0 ) -- this is fired up every 250ms, you want to stop it after 28000ms, so 28000/250 = you want to execute it 112 times, so replace that zero number with 112 setTimer( randomVehColors, 500, 0 ) -- if you really need to leave it there, set times to repeat = 56 end)
  9. for peds you can only replace txd
  10. well, i dont want to flame with your, looks like you want it.. anyway, theres "See Also" on wiki, and this is where i looked after i saw on forums getDistanceBetweenPoints3D for the first time, but i needed to ignore height.. EOT
  11. dzek (varez)

    timers

    your sound was exactly 28 sec long. just don't loop it!! click on function below to get help: playSound
  12. are you sure that was a good reason to bumping this?
  13. i think (and hope) he already found out this by himself
  14. at least after 2 month kevin11 KNOW SOMETHING! That's big thing
  15. they can lie in that case also ..
  16. lol, true, when i saw the quotes i didnt read rest
  17. oh, he meant to disable files check? O_O lol..
  18. omfg setTimer ( "destroyObject", 10000, 1, t1 ) why in quotes?
  19. you are making me wanna kill myself.. maybe the others are deaf? or they are lying to you? or they have sound turned off? on client side put: addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement(), function() local sound = playSound("files/mariosong.mp3",false) setSoundVolume(sound, 1.0) outputChatBox("this is freaking DEBUG, DEBUG FTW!") end) read this (btw: read whole manual before asking anything) https://wiki.multitheftauto.com/wiki/Debugging and if you are really desperated use this for debug (gift from me): server function PlayMusic() triggerClientEvent(getRootElement(), "playMyMusic", getRootElement()) end addCommandHandler("mario", PlayMusic) addEvent("catchDebug", true) addEventHandler("catchDebug", getRootElement(), function() local name=getPlayerName(source) outputChatBox(name.." should hear the sound - debug don't lie" end) client addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement(), function() local sound = playSound("files/mariosong.mp3",false) setSoundVolume(sound, 1.0) outputChatBox("this is freaking DEBUG, DEBUG FTW!") triggerServerEvent("catchDebug", getLocalPlayer()) end) and.. i gave you a link, again: https://wiki.multitheftauto.com/wiki/Debugging I don't think so you will bother to read but you can read there about debugscript command. Use it to spot errors in your script. Do "/debugscript 3" in chat or "debugscript 3" in console.
  20. local sound = playSound("mariosong.mp3",false) you are still trying to load sound without specifying full (but relative to resource root of course) in playSound argument... local sound = playSound("files/mariosong.mp3",false)
  21. gamemode in server console or just start if its freeroam
  22. stop bumping and acting like 10 years old kid. you failed at one important thing - you bought something, that you know NOTHING about. i wouldnt buy a plane if i cant steer it.. you should setup local server first, test how everything is working, and after successfull preparation you should upload ready-to-run package, then just run server. answer for all your questions: https://wiki.multitheftauto.com/wiki/Server_Manual and https://community.multitheftauto.com/ and.. you can't change car handling.. and how handling is connected with mysql
  23. zip your resource and post whole resource. i dont know HOW and WHAT you messed up, but you messed up something for sure o_O
  24. so get pack to previous post and re-read it. you messed up something, thats all. good idea - rewrite whole script (writing same thing again is faster) but you have to focus and watch out on every step. think, and try to expect every possible data on every function etc
  25. omg, next guy who dont know the idea, but trying to use random code, right? you are not escaping your queries, its very easy to remove your whole database by random player read: https://wiki.multitheftauto.com/wiki/Modules/MTA- ... ape_string and yes, you are right, SELECT * FROM players WHERE login='' and password='' should do the job. but escape your variables!
×
×
  • Create New...