Jump to content

Tomek123

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by Tomek123

  1. How i can change stats of player?
  2. How i can do somthing like this : http://img840.imageshack.us/i/gtasa2011 ... 01521.jpg/ http://img836.imageshack.us/i/gtasa2011 ... 00210.jpg/
  3. Why this peds don't won't dance? function pedLoad () APed = createPed ( 178, 327.61187744141, 2478.4943847656, 17.784637451172 ) BPed = createPed ( 246, 321.29089355469, 2481.6147460938, 17.79061784668 ) CPed = createPed ( 87, 321.67388916016, 2476.1999511719, 17.784637451172 ) setTimer(setPedRotation,5000,1,APed,270 ) setTimer(setPedRotation,5000,1,BPed,225 ) setTimer(setPedRotation,5000,1,CPed,315 ) setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) setTimer(setPedAnimation,5000,1,BPed,"DANCING","DAN_Left_A",-1,true,true,true ) setTimer(setPedAnimation,5000,1,CPed,"DANCING","DAN_Right_A",-1,true,true,true ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
  4. It is impossible to make
  5. no work [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes' [2011-02-13 11:54:53] WARNING: save_clothes\clothes.lua:17: Bad argument @ 'getPedClothes'
  6. I fix this erorrs and now console say me bad argument 'getPlayerClothes'
  7. This is not for load? function onPlayerJoinLoadClothes ( ) local acc = getPlayerAccount ( source ) if acc then for i=0,17 do local texture, model = getPedClothes ( source ) if texture and model then setAccountData(acc, "clothes." .. tostring(i) .. ".texture", texture) setAccountData(acc, "clothes." .. tostring(i) .. ".model", model) end end end addEventHandler("onPlayerJoin", root, onPlayerJoinLoadClothes)
  8. Thanks, but again errors SCRIPT ERROR: save_clothes\clothes.lua:26: 'end' expected (to close 'function' at line 1) near '' WARNING: Loading script failed: save_clothes\clothes.lua:26: 'end' expected (to close 'function' at line 1) near ''
  9. Please say me what is wrong.
  10. Oh i fix this now Now say Warning : Bad argument getPedClothes And console say this maybe 20 time
  11. Now i do somthing and now console say: Warning : bad argument @ 'getPlayerAccount' (string-defined function) Warning: bad argument @ 'addEventHandler* (string-defined function) This is script : local acc = getPlayerAccount(thePlayer) if acc then for i=0,17 do local texture, model = getPedClothes(thePlayer) if texture and model then setAccountData(acc, "clothes." .. tostring(i) .. ".texture", texture) setAccountData(acc, "clothes." .. tostring(i) .. ".model", model) end end end addEventHandler("onPlayerJoin", root, onPlayerGetSaveClothes) function onPlayerQuitSaveClothes() local thePlayer = source local playeracc = getPlayerAccount(thePlayer) if playeracc then for i=0,17 do local texture, model = getPedClothes(thePlayer) if texture and model then setAccountData(playeracc, "clothes." .. tostring(i) .. ".texture", texture) setAccountData(playeracc, "clothes." .. tostring(i) .. ".model", model) end end end end addEventHandler("onPlayerQuit", root, onPlayerQuitSaveClothes)
  12. Now console say me arror "attempt to call global 'getPedClothe'
  13. Again no work but no have errors.
  14. function onPlayerQuitSaveClothes() local playeracc = getPlayerAccount(source) if (playeracc) then setAccountData(playeracc, "player.clothes", getPedClothes(source, 0)) end end local playeracc = getPlayerAccount(thePlayer) if acc then for i=0,17 do local texture, model = getPedClothes(thePlayer) if texture and model then setAccountData(acc, "clothes." .. tostring(i) .. ".texture", texture) setAccountData(acc, "clothes." .. tostring(i) .. ".model", model) end end end addEventHandler("onPlayerQuit", root, onPlayerQuitSaveClothes) addEventHandler("onPlayerJoin", root, onPlayerJoinSaveClothes)
  15. I do and now console say: "Bad argument @ 'getPlayerAccount' Bad argument @ 'addEventHandler'"
  16. How then make clothes saver?
  17. No work :\ Now console say me : "Bad argument @ 'addPedClothes'
  18. No work Console say me : "11:'then' expected near 'local' How fix this? In what i must put this?
  19. Again somthing wrong function onPlayerJoin ( ) local playeraccount = getPlayerAccount ( source ) clothes = getPedClothes" class="kw2">getPedClothes(source,0) end end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerJoin ) function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then clothes = getPedClothes" class="kw2">getPedClothes(source,0) setAccountData ( playeraccount, "play.clothes.shirt", playerclothes ) end end addEventHandler ( "onPlayerQuit", getRootElement(), onPlayerQuit )
  20. I want make script for save CJ clothes.
  21. OMG this is so hard i trying and nothing ;(
  22. 1. getPedClothes retrieves 2 strings (clothes texture, clothes model) and also you used the wrong arguments, can't you read Wiki? It clearly says it needs ped element (which you put correctly) and integer (and you have put a string in there). 2. setPedClothes doesn't exist, you must use addPedClothes. Read a little! https://wiki.multitheftauto.com/wiki/GetPedClothes https://wiki.multitheftauto.com/wiki/AddPedClothes I try with this and console say me "Bad argument @ "addPedClothes"
×
×
  • Create New...