Jump to content

Drakath

Members
  • Posts

    768
  • Joined

  • Last visited

Everything posted by Drakath

  1. Drakath

    Stuck

    No, I mean if you enter wrong coordinates to spawn a vehicle and it spawns into some wall, how can I check if it is stuck in there?
  2. Drakath

    Stuck

    Is there any way to check if an element is stuck in another object? Like a vehicle stuck in the wall.
  3. Drakath

    Table loop

    Error: attempt to index field '?' (a number value) local numbers = {{1,2},{3,4},{5,6},{7,8},{9,10}} function check () local number = 3 for i,v in ipairs (numbers) do if number == v[1] then outputChatBox(v[1].." | "..v[1][2]) break end end end addCommandHandler("check", check)
  4. Drakath

    Table loop

    I don't want to unpack the whole table. If I enter 7, I should get 8704.
  5. Drakath

    Table loop

    I have a table with some numbers: local numbers = {{1,240},{3,4670},{5,64343},{7,8704},{9,10476}} If I can retrieve numbers: 1,3,5,7,9, how can I get a number next to it? For example if I get a number 3 I want to retrieve a number 4670.
  6. I have two elements with the same ID. As stated in wiki it only returns the first element. Is there a way to retrieve the second element?
  7. Never mind, I found it. It is getElementByID
  8. One more question, if I know player's account's ID, how can I retrieve the player?
  9. If I set element data to a vehicle and that vehicle is blown up, will the element data remove by itself?
  10. Drakath

    Bandwidth

    How do I use this resource? I started it and opened main.htm but it doesn't show anything, only empty lists.
  11. So how come few players were able to pass the condition several times? They said that they could not pass it anymore after reconnect.
  12. How can I check if my data is synced and how to check if player doesn't exist on the other side?
  13. Oh, I provided incorrect information. Data is set to 10 by client, then server sets it to 0 and finally server checks data with 'onElementDataChange'. and it is still 10.
  14. Data is 0. It should pass the condition if data is 10 but it passes with 0.
  15. Drakath

    Bandwidth

    What if my Server is held on pc?
  16. I have element data called: "data". The script sets data to 0. Then I use 'onElementDataChange' if getElementData(source,"data") == 10 then outputChatBox("k", source, 0, 255, 0, true) And for some players it outputs k. How is this possible, if I ask data to be 10 and it stills passes the condition? Usually everything works fine but for some people it happens. Why? Everything is server side.
  17. Drakath

    Bandwidth

    How can I see my Server's bandwidth usage?
  18. What about commands showhud and showchat, do they remove render event when command is executed?
  19. Can someone list all those from fastest to slowest? onClientRender, onClientHUDRender, onClientPreRender, setTimer ( func, 50, 0 )
  20. Drakath

    Marker

    Are you sure you want it? I tested that script on my test sever and it worked fine.
  21. Drakath

    Brackets

    What is the difference between: if (source == marker) then and if source == marker then ?
  22. Drakath

    Marker

    Strange, it only happens on my main Server. Maybe lag causes this? (Everyone encounters this bug)
×
×
  • Create New...