Jump to content

shikaru

Members
  • Posts

    8
  • Joined

  • Last visited

Details

  • Gang
    dont know

shikaru's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. ups i didnt know that, Thanks again you 2
  2. i found a 2nd solution!!. there is a event named "onGamemodeMapStart" but there is no information abouth this in wiki. for example, this code print the name of the resourcemap started function loadMap(startedMap) mapRoot = getResourceRootElement(startedMap) outputChatBox(getElementID(mapRoot)) end addEventHandler("onGamemodeMapStart", getRootElement(), loadMap)
  3. Thanks you very much, its works!!! you always have the correct answer.
  4. i have tried that, but it not return the resourse as element, the event handler need the resource as element i think. because if i do that, console says " file.lua:5 bad 'element' pointer @ 'addEventHandler' <2> but Thanks!! you always answer fast
  5. hi all, i have a problem my code, i just want that a function get triggered when a map resourse start here is what i have tried local myMapElement = getElementByIndex("resource",10) --My map resource local qq =getElementID(myMapElement) outputChatBox(qq) --show de ID of my map to verify addEventHandler("onResourceStart", ee, do_something) but it doesnt work i want to do specially this addEventHandler("onResourceStart", myMapElement, do_something) how can i give my Map as element to that event? there is a way to doit without have this code in my map resource?
  6. Thanks varez i search for it exept in wiki, i dont know why ^^
  7. Thanks a lot men, i have spend a lot of time in the wiki , and i didnt saw, im becoming blind ^^
  8. hi all!. As the question says. . . How can i read, update, and SQL things with a resourse written in lua? tnx sorry for my bad inglish
×
×
  • Create New...