Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. hahaha, seems somebody doesn't like bad comments. Go a head and think that I can't, the scripters I have helped know better then that. I probably have helped you also in the past. As you can see my post count then you know how many people I have helped. Of course I am differed from my mate Et-win, but I let people write their own code and correct them when they made a mistake or give them solutions. In your case I gave a solution because of the leak of my time(large concept project). I did writing full code for people in the past, but I am not doing that any more and it seems he is still doing that on some topic's. It will probably change after he reached 2k posts. Anyway it is really pathetic of you to compare me with Et-win so he will fix/rewrite your code. and as you wished I will not reply on this, if you do not reply on this post. ( or I will still replying till you shut up ) I recommend you to not reply or you will literally ruining your own topic. Let Et-win write your code, I don't care less.
  2. RE-PM I am not the only one, but yes I can rewrite this code perfectly, but that isn't how it works. I do not help people who are not trying to fix it by them self and who ignore my solutions. Also it looks like you don't know how your currently code works, so please leave me alone. I am not willing to help you under those conditions.
  3. IIYAMA

    while

    ------------------------------------------------- local outputChatBox = outputChatBox or print ------------------------------------------------- local count = 1 while count <= 10 do outputChatBox(count) count = count+1 end http://www.lua.org/cgi-bin/demo
  4. IIYAMA

    File Decode

    I debugged the result in my debug resource. It cost time to process this all, you can't output a whole script inside the chat. addEventHandler("onResourceStart",resourceRoot, function () --------------------------------------------------------------------------------------------- -- Resource Name rName = getResourceName(getThisResource()) --------------------------------------------------------------------------------------------- function mainDecode(s1,s2,key) if s1 and s2 and key then return teaDecode(tostring(s1),tostring(key)),teaDecode(tostring(s2),tostring(key)) else return false,false end end -- To Store Key Data --------------------------------------------------------------------------------------------- local kf = xmlLoadFile("key.xml") local data = xmlFindChild(kf,"key",0) local thekey = xmlNodeGetValue(data) local keyc = tostring(thekey) local sKey = "1234" local eKey = teaDecode(tostring(keyc),tostring(sKey)) rawKey = tostring(eKey) --------------------------------------------------------------------------------------------- -- Problem starts here local sf = fileOpen("server.tea",true) local cf = fileOpen("client.tea",true) local sr = fileRead(sf,fileGetSize(sf)) local cr = fileRead(cf,fileGetSize(cf)) local dx1 = base64Encode(sr) local dx2 = base64Encode(cr) outputChatBox(tostring(dx1)) outputChatBox(tostring(dx2)) local serverCode,clientCode = mainDecode(dx1,dx2,rawKey) outputChatBox(tostring(serverCode)) outputChatBox(tostring(clientCode)) call ( getResourceFromName ( "debugLog" ), "writeDown",tostring("test") ) fileClose(sf) fileClose(cf) -- And the problem ends here function loop (clientCoded) triggerClientEvent(rName.."ALE",getRootElement(),getRootElement(),clientCoded) dcTime () end function dcTime () outputChatBox("call") call ( getResourceFromName ( "debugLog" ), "writeDown",tostring("test") ) call ( getResourceFromName ( "debugLog" ), "writeDown",tostring(dx1) ) call ( getResourceFromName ( "debugLog" ), "writeDown",tostring(dx2) ) call ( getResourceFromName ( "debugLog" ), "writeDown",tostring(serverCode) ) call ( getResourceFromName ( "debugLog" ), "writeDown",tostring(clientCode) ) --loop(clientCode) assert(loadstring(tostring(serverCode))) end setTimer(loop,10000,1) -- To give the client a few seconds to get shit going. --[[ addEvent(rName.."take",true) addEventHandler(rName.."take",getRootElement(),loop) ]]-- --------------------------------------------------------------------------------------------- end) test test guhiDEdB/hM4neKJMit2g3YTxVsdVN7tLp8PevEwt740Td/NR+EE5EfYq6RRXwUhjcAr5xDtxnzr7hp/l1q49JX/VF81Lv+Ot9KshZRYEQAcFjyj81KNim5BoNHMrba+AFJO56maAH+EJHx1UGLC/MdSP/wzsOjSJ5Wd6Tg/kBepdSqmBLTwSIRNK/ZDC/DkYmPEO6ELI/hTvpjFYh6G/EuGAwPgwx8AjyVsiUESOEAhIJGDP54tTMDR88y/ubdOSbSo9jlO/AOtUziLFsAofoo4oY7Uhghsgu2Wzyh08WJ5btzzPltRjbiOfuF0EVgW2N+yWmzrUU0+V9CxZ+5EGWVL3nHyKo7svID+J3MlfPt/j9SJgYWt4ioxrTwsUjROARVYo9oOxDcyZ1UDsfsyUyRuDQR5fgSYjuYGoVQkQ+BNnp2D5yy445KqmOk/IAcQQI991pu7XJDFJjjr5KYUJi8eAoGVXB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qlkLXN/oPH+jpz0D4R/rwK/YdH36pAVxAwBorEcSltUIbvmjDzelIKfPXfAs8oPZKzYb2stt2ABQ4IoJJVIZ0I5pqD1YvQuYhrzCS8IQ8ofw0ua4EqDdwF6h5fr0FOERtcgqVqwJojlGygvpFP4y8uxB0j5DHRAS8elXttoHt6K2prqcXtmGiI9NJaV0bLXiuYkKQmAVhYfxvtVCHaEkoL5ZLLRCEfQmEf38WOvY/jdtnwRAdO40IHfnNywbQzmlfPCt0tw+K74l7kpVxMc7YX8wJKro+Ggj0lJMVHW4X4cbmZKIfmj8LLWmNKTugJcB6HobZKOT1g0m1Ay934MP0diSX3ctx2jbPNBseyZvDybIvqsZUbjdMJsMAcSitlcxNYVfVIecXziDk7ZMX2U/TJ+uGt1Be+Rspic2wq7SiMkjNTRnWJTzWJN6yO6iLVqCilFvmfpWNJ6HWGYm8eB0vK4jvfrtRtVCEYa72pIvLkAVQymLfnJUaoTYPMYWpT392bcqMc1ROOdE5qJHCKpBKcHzE8x1xK9y/tRkl1RAVhXG0wubYW9sTfxBUtExzpxpHzjFx0bevrz4KzX9KEaSyp6WkY5rvNKaOtRhg2VHlhAHYWf8SzCueZbHmBTA/YctrNaTPEtvA2YJOfd0MPkm2Mbv29bGIpRpyd8i5pbN5uHouol/NPaGBztOhdSYGHptrRpvSb0yraDP4Gq6GZPyA1bQBdkkUzMDP0maj1JH2yKAXNuDQrbeS1BIvyJylhwgNEt5qpsJ2qOoHdE1WF4+Pcwkxyo3WQKOIPQLC6U3sfXQdAAsBNoFkMM6dofD6OSdJ491DlF1vy+h7RPWXQbQHc1tqrs71q4P2qVshuapg= outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working") outputChatBox("Server Working")
  5. what was the problem?
  6. Not give error or warning on debug... if so then what doesn't work of the code?
  7. be more specific and check your debug.
  8. local blow = tonumber(get("blowTime")) or 15000 local idle = tonumber(get("idleTime")) or 300000 local water = tonumber(get("waterTime")) or 40000 That is because you only gets strings as returns. So if you fill in 15000 in the previously code. This is the value you get. local blow = "15000" But this is what you want. local blow = 15000 So you convert them to a number with the tonumber() function. and if you fill in something which isn't a number at all, it will do: or 15000 so will be reset a default. In debugscript 3 you would have seen this error. Command: /debugscript 3 and about this, this can crash your server: (infinity timers) function respawnExplodedVehicle() setTimer( respawnExplodedVehicle, blow, 1, otherElements ) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) Just simply use the wiki example: https://wiki.multitheftauto.com/wiki/RespawnVehicle
  9. is your table on top of your code?
  10. did you changed the variable somewhere?
  11. if it is not in the same file/ not higher in the code, put the table as a global.
  12. if isElementInWater ( vehicle ) and not next(getVehicleOccupants (vehicle)) then Vervang deze regel. (regel 4)
  13. as I told you before, it is because you don't kill that timer when the player leaves. Nor the table get cleaned.
  14. If you don't finish it, of course it will not work... Is this your code? Because you give me the feeling it isn't, since you don't try anything.
  15. sorry bro i don't undrestand this can you help me to fix it i'm sorry if i aste ur time . I have no time to write the whole thing bro. But I will recommend you to use 1 timer and getTickCount(). With every timer execution you loop through the whole table and compare the time now with the future time. unmuteTimer[player]=getTickCount()+10000 -- time now + 10 seconds. local timeNow = getTickCount() for player, futureTime in pairs(unmuteTimer) do if isElemenr(player) then if timeNow > futureTime then unmuteTimer[player] = nil setPlayerMuted ( player, false ) end else unmuteTimer[player] = nil end end
  16. It seems you aren't reading my post correctly. I am not talking about the mute time, I am hell talking about the player element it self, while leaving an invalid player element is still in the system. onPlayerQuit would work better. Players should not be able to logout if you want your system to work correct.
  17. inside the timer block should be a element check. (isElement(player)) If he isn't an element, the timer should be killed and the table should be cleared.
  18. @shoBy seriously? You don't even know what you are doing, aren't you? You should do the basic things correctly, before you start with the advanced stuff. Now you are only f.... up your code everytime you edit it. If you don't have time for learning, then stop coding. Wasting your time, wasting our time.
  19. O_o"! @Novadex you little bitch
  20. blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0,[color=#00FF00] float visibleDistance = 99999.0[/color], visibleTo = getRootElement( ) ] ) https://wiki.multitheftauto.com/wiki/CreateBlip
  21. no, The getAccounts function will return the results of getPlayerAccount inside a table. Try this out to make it understand able. local accountTable = getAccounts() for index,account in pairs(accountTable) do outputChatBox(index .. " " .. tostring(account) .. " " .. getAccountName(account)) end
  22. nice
  23. or you didn't remove that last end. or you have to add a row every time you set an item text, so you have to change the code.
×
×
  • Create New...