Jump to content

MIKI785

Members
  • Posts

    1,131
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by MIKI785

  1. Then where is it? This script works on my local server but it doesn't work on my public server....................
  2. There is no error if the same code works on my local server without problems...
  3. LoL, The same code works on my local server... WTF?!
  4. OMG, I did it like 20 times? It still says that the event is not added client side, there are no other errors or anything,...
  5. No, it's exported function, at it is called... Yes, I refreshed it, i'm not that stupid...
  6. I tested it on my local server and it worked, then I added it on public server and it doesn't work... Client: function showTheWinMessage(thePlayer) --Code which is working.. end addEvent( "onPlayerWinTheRace", true ) addEventHandler( "onPlayerWinTheRace", getRootElement(), showTheWinMessage ) Server: function playerWinTheRace(player) --This is called by the race.. triggerClientEvent("onPlayerWinTheRace", getRootElement(), player) end
  7. Still.. the event is not added client side.
  8. What? It still says that the event is not added client side...
  9. What did you change there? O_o I send it twice, because the first one is source, and i don't use source, but first argument in the function.
  10. Hello, I have problems with events... there are no errors or warning in the scripts but when I try to call client event "onPlayerWinTheRace" from server, it shows error that it;s not added client side. But i have this in client script: addEvent("onPlayerWinTheRace",true) addEventHandler("onPlayerWinTheRace",getRootElement(),function) So, where is the problem? Other events don't work as well in this script... from server > client. The server side is this: triggerClientEvent(getRootElement(), "onPlayerWinTheRace", player, player)
  11. Hi, The onClientColShapeHit is not called when the projectile hits it? because when a car hits it, it works. But when a rocket from hunter hits it, it doesn't work...
  12. MIKI785

    Time problem

    I can see that it's not your script.. are you allowed to edit it? Anyway, it should be working if you use this: function timestampToDate(stamp) local time = getRealTime(stamp) return string.format("%d %s %02d:%02d",time.monthday,month[time.month+2],time.hour + 1,time.minute) end The thing I changed is this: time.hour + 1, you can't do even that? It should work..
  13. You can do it easily using onClientElementDataChange addEventHandler ( "onClientElementDataChange", getRootElement(), function (dataName) guiSetText(label, "Data: " .. getElementData(source, dataName)) end ) Something like that... it should work.
  14. Which is client and which is server? In what script files they are? Are there any warnigs/errors in debug? I can't understand those events..
  15. What? Did you look at the syntax? O_o, setVehicleColor(vehicle, R, G, B). You can set any color you want.
  16. Yes, but it's complicated. To do so.. you can cancel the onPlayerConnect event. But you have to make your own banning system..
  17. That's stupid idea... scripting just can't be like this..
  18. Yeah, that's it. I couldn't find it. Thanks
  19. Hello, I think that I saw this on a wiki, but i can't find it now. When you create XML file client sided, and the resource is on two or more servers, the XML file is read and writen by the all servers, how to make that each server has one XML file?
  20. Hi, I have a question, when a server removes BAN itself (when the BAN duration is over), does it call any event? Like does it call onUnban ? That's all
  21. You don't have many of the default resources, download them here: http://code.google.com/p/mtasa-resource ... bel:Latest and extract them to the resources folder.
  22. You don't have many of the default resources, download them here: http://code.google.com/p/mtasa-resource ... bel:Latest and extract them to the resources folder.
  23. He's talking about Freeroam... you have to say that!. You can change that limit simply in the resource settings..
  24. Original name of the reource is "loginform", I don't think you entered it right.
×
×
  • Create New...