Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. uhm, if you just need to make join sound that only player that join hear - just use this resource: https://community.multitheftauto.com/index.php?p= ... ils&id=976 also don't create more than one topic about same problem: viewtopic.php?f=91&t=29267 I'm locking old one, don't do it again.
  2. 578 posts and still don't know how to Debug? I'm too busy to check this code now, but with debug you can often spot your error faster than writing a topic on forum..
  3. same thing but looks more confusing for me (but eliminate my mistake when after first death Loses are set to 0 instead of 1)
  4. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Debugging general lua: http://www.lua.org/manual/5.0/manual.html general wiki (Scripting box on Main Page): https://wiki.multitheftauto.com/wiki/
  5. argh argh.... Should i give you link to lua tutorial and debugging tutorial? Just check other topics - every 5 messages i'm posting these links but nobody even cares to CLICK those links:/ function addStatsData() x = getElementData(localPlayer,"Race Loses") if x ~= nil and x ~= false then setElementData (localPlayer,"Race Loses", tonumber(x)+1) else setElementData (localPlayer,"Race Loses", 0) end end addEventHandler("onClientPlayerWasted", getLocalPlayer(), addStatsData) you just got to my personal blacklist of ppl not trying to think, which means i'm not interested in your topics anymore - if you care..
  6. change: getRootElement() to getLocalPlayer()
  7. 1.) dont forget about else i've written 2.) https://wiki.multitheftauto.com/wiki/GetElementData 3.) think! 4.) if x ~= nil and x ~= false then -- until you come with new question..
  8. omg.. its too easy to ask o_O and was asked 10000000000000 times.. make script from these ( i did not follow syntax etc, and it can have some typos) x = getElementData if not nil and not false setElementData (..., x+1) else setElementData(...,0) end
  9. and did you add your wav to meta.xml? aslo are you sure your file is named *.wav not *.WAV ?
  10. use <file src="phones/locationPhones.xml" /> config is for server-side
  11. next mta is 1.1, not 1.0.5
  12. the problem is that since MTA 1.0.4 accounts are saved in internal.db file instead of accounts.xml and this is no longer a xml file, but sqlite database. of course you can still use getAccountData etc, but you can't edit this data with notepad. use sqlite browser.
  13. https://wiki.multitheftauto.com/wiki/Debugging
  14. do not bump your post. give us more than freaking 2 hours to reply error says all: player = xmlFindChild(xmlFile, "skin", playerSkin-1) this is returning false
  15. https://wiki.multitheftauto.com/wiki/Scr ... troduction This? Or general Lua manual: http://www.lua.org/manual/5.0/
  16. and did you set type="client" in meta.xml ?
  17. dzek (varez)

    MTA for GTA IV

    i know about vc trails but never tried them
  18. https://wiki.multitheftauto.com/wiki/Server_Manual after read just start resource "play"
  19. nonono, MONEY pickups. they are created in script above (7th post).
  20. i just entered "flood" and found it w/out any problem..
  21. dont get annoyed - because this won't help you. you dont have to be pro, you need to have general idea bout scripting.. handler is that function that is being fired when you input the command - so in other words - you need to modify that function you have made.
  22. (i have fixed link in first post) you could search community by yourself anyway
  23. i dont see any "team" element data in his money pickups script.. shouldnt this eleData == teamName fail when picked up money pickup then? eleData will be false, team name probably something else..
×
×
  • Create New...