
SirniNamaz
Members-
Posts
138 -
Joined
-
Last visited
Everything posted by SirniNamaz
-
well that fades it to gray, but i want it to be 50% transparent black
-
how to fade the screen but not completely, only about 50%?
-
1. how can i make columns not resizable? 2. how can i disable sorting?
-
this is my meta file and it works (it doesn't download it from start), but how can i make it download this file so i can repleace the model?
-
is it possible to make gui (with all its elements) to fade in or out?
-
how to: 1. disable 'logout' and 'login' and 'register' command 2. disable chatbox 3. how to disable chatbox output that gets outputed when you login (or logout), something like this: login: you have successfully logged in and logout: you have successfully logged out
-
how to get true if string is longer that 3 chars, else false?
-
how to make column under column sorting mode in gridlist?
-
i was looking there too, but link for qt to lua is broken.
-
is there and 3rd party gui editor?
-
thats why i put i=0,149
-
Client: function eventFiveSec() if (guiGetVisible(guiEventManager) == true) then local xmlElements = xmlLoadFile("elements.xml") guiGridListClear(grdElementsList) for i=0,149 do local xmlOldChild = xmlFindChild(xmlElements,"element",i) outputChatBox(xmlOldChild) local attrs = xmlNodeGetAttributes(xmlOldChild) outputChatBox(i) if (attrs == false) then return else local newRow = guiGridListAddRow(grdElementsList) for name,value in pairs(attrs) do outputChatBox(name .. " = " .. value) end end end xmlUnloadFile(xmlElements) end end XML: "6447187" type="weapon" item="4" x="2474.0759277344" y="-1653.5537109375" z="13.46875" left="1"> "5859401" type="weapon" item="4" x="0" y="0" z="0" left="0"> "1829493" type="weapon" item="4" x="2477.142578125" y="-1662.857421875" z="13.336080551147" left="1"> Problem: xmlOldChild is always returned as false
-
I still need help with this
-
This is not the full code, this is only the part which doesn't work.
-
Can i rather PM it to you, i don't want it to be stolen.
-
i figured it out and it is just above your post on line 5-8, but my problem is that it doesnt get exported to gridlist.
-
function eventFiveSec() if (guiGetVisible(guiEventManager) == true) then local xmlElements = xmlLoadFile("elements.xml") for i=0,149 do local xmlOldChild = xmlFindChild(xmlElements,"element",i) local attrs = xmlNodeGetAttributes(xmlOldChild) if (attrs == false) then return else guiGridListClear(grdElementsList) local newRow = guiGridListAddRow(grdElementsList) for name,value in pairs(attrs) do outputChatBox(name .. " = " .. value) if (name == "item") then if (tonumber(value) == 4) then guiGridListSetItemText(grdElementsList,newRow,colElement2,"Knife",false,false) end end if (name == "x") then guiGridListSetItemText(grdElementsList,newRow,colElement2X,value,false,false) end if (name == "y") then guiGridListSetItemText(grdElementsList,newRow,colElement2Y,value,false,false) end if (name == "z") then guiGridListSetItemText(grdElementsList,newRow,colElement2Z,value,false,false) end if (name == "left") then guiGridListSetItemText(grdElementsList,newRow,colElement2Left,value,false,false) end end end end end end It now only returns one line of error, but it doesn't get exported to gridlist.
-
there is one element, but it doesn't get returned in gridlist (i am currently ignoring the 149 errors or xmlFindChild command, but i get 150 of them, it cant even load the first one into gridlist)
-
client if (guiGetVisible(guiEventManager) == true) then local xmlElements = xmlLoadFile("elements.xml") for i=0,149 do local xmlOldChild = xmlFindChild(xmlElements,"element",i) local attrs = xmlNodeGetAttributes(xmlOldChild) if not (attrs == false) then guiGridListClear(grdElementsList) local newRow = guiGridListAddRow(grdElementsList) for name,value in pairs(attrs) do outputChatBox(name .. " = " .. value) if (name == "item") then if (tonumber(value) == 4) then guiGridListSetItemText(grdElementsList,newRow,colElement2,"Knife",false,false) end end if (name == "x") then guiGridListSetItemText(grdElementsList,newRow,colElement2X,value,false,false) end if (name == "y") then guiGridListSetItemText(grdElementsList,newRow,colElement2Y,value,false,false) end if (name == "z") then guiGridListSetItemText(grdElementsList,newRow,colElement2Z,value,false,false) end if (name == "left") then guiGridListSetItemText(grdElementsList,newRow,colElement2Left,value,false,false) end end end end end xml "8066072" type="weapon" item="4" x="2486.3376464844" y="-1663.841796875" z="13.335947036743" left="1"> "7858149" type="weapon" item="4" x="2469.3784179688" y="-1667.8182373047" z="13.302844047546" left="1"> the error is : Bad argument @ 'xmlNodeGetAttributes'
-
local NodeID = getElementData(source,"314613.NodeID") for i=0,150 do local xmlElements = xmlLoadFile("elements.xml") local xmlOldChild = xmlFindChild(xmlElements,"element",i) if (xmlNodeGetAttribute(xmlElements,"id") == tonumber(NodeID)) then xmlDestroyNode(xmlOldChild) xmlSaveFile(xmlElements) return end end no debugscript.. the problem is that it doesnt delete the node
-
local xmlElements = xmlLoadFile("elements.xml") local xmlNewChild = xmlCreateChild(xmlLoadFile,"element") xmlNodeSetAttribute(xmlNewChild,"type",varNodeValue1) xmlNodeSetAttribute(xmlNewChild,"id",varNodeValue2) xmlNodeSetAttribute(xmlNewChild,"x",varNodeValue3) xmlNodeSetAttribute(xmlNewChild,"y",varNodeValue4) xmlNodeSetAttribute(xmlNewChild,"z",varNodeValue5) xmlNodeSetAttribute(xmlNewChild,"left",varNodeValue6) xmlSaveFile(xmlElements) in debugscript it says that there is error with xmlNodeSetAttribute i want the xml to look something like this: type="weapon" id="4" x="0" y="0" z="0" left="0" />
-
how do i make subitem of item(row) in gridlist?
-
local metaXML = getResourceConfig("meta.xml") local metaAuthor = xmlNodeGetAttribute(metaXML, "author")
-
is it possible to get the current mta resolution by external program?
-
i have a variable which's value is 5.00 (not string), but when i want to output it to label, it is shown as 5, not 5.00 how do i fix this?