Jump to content

Dice

Members
  • Posts

    103
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dice's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

0

Reputation

  1. blackband1 = engineLoadTXD("bandblack.txd") engineImportTXD(blackband1,30217) banddff = engineLoadDFF("bandana.dff",30217) engineReplaceModel(banddff,30217) Why is this crashing? regarding this https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs
  2. Dice

    get selected items

    Thanks TAPL works great. I don't get the dummy variable tho.
  3. function sendListToPlayer() tbl = guiGridListGetSelectedItems ( newrlist ) for k,v in pairs ( tbl ) do selName = guiGridListGetItemText ( newrlist, tbl[k].row, 1 ) selUrl = guiGridListGetItemText ( newrlist, tbl[k].row, 2 ) outputChatBox ( selName .. " " .. selUrl ) end end example problem, when function executes if the selName is "who" and selUrl is "where" then it ouputs who where who where even though i only have one item selected. again i know why it is happening but i dont know how to fix it. I have 2 columns and multiple rows, I want to input the items selected in a table as so. the problem is, they keep printing more than once. and the reason is , because for every item seleceted. It does guiGridListGetItemText 4 times if 2 rows are selected because ( 1 row, 1 column ) and ( 1 row, 1 column ). but I don't want it to do that. I only want it to do it once and output it once.
  4. Dice

    Table Dialogs

    Thank U! btw destroyElement is not fine.
  5. Dice

    Table Dialogs

    what? That's not the problem here. It closes fine. The problem is i have so many windows open, once i close one it ignores the rest of them.
  6. Dice

    Table Dialogs

    dialogs = {} function createAttentionDialog ( text ) index = index + 1 if not dialogs[index] then dialogs[index] = {} else return createAttentionDialog ( text ) end local screenW, screenH = guiGetScreenSize() -- tabs = #dialogs[index] + 1 dialogs[index].window = guiCreateWindow((screenW - 386) / 2, (screenH - 185) / 2, 386, 185, "Attention!", false) -- guiWindowSetSizable(dialogs[1].window, false) dialogs[index].okbutton = guiCreateButton(87, 127, 89, 24, "OK", false, dialogs[index].window) dialogs[index].lbl = guiCreateLabel(15, 27, 355, 85, text, false, dialogs[index].window) guiSetFont(dialogs[index].lbl, "clear-normal") guiLabelSetHorizontalAlign(dialogs[index].lbl, "center", true) guiLabelSetVerticalAlign(dialogs[index].lbl, "center") dialogs[index].cancelbutton = guiCreateButton(198, 127, 89, 24, "Cancel", false, dialogs[index].window) dialogs[index].chk = guiCreateCheckBox(128, 156, 117, 15, "Disable requests", false, false, dialogs[index].window) guiSetFont( dialogs[index].chk, "default-bold-small") addEventHandler ( "onClientGUIClick", dialogs[index].okbutton, function ( ) _destroyElement ( dialogs[index].window ) end ,false ) end A friend put me in charge of a part of a script. and i don't know how to make it so for each window it creates, i can press ok to close eacch one. Right now it works but i can only close the most current ones. the rest stay open adn when i press ok on them it says destroyElement ( bad pointer ). my friend patched _destroyElement so dont worry about that
  7. for i = 1,#tab do outputChatBox ( tab[i][1] .. " " .. tab[i][2] ) end
  8. yeah I know that method but the thing is, I am using table.insert so the sizes can vary, how can i make sure it gets it all.
  9. example tab = { { "nme", "text"}, { "nme2", "text2"}, { "nme3", "text3"} } I want to print nme, txt for each table.
  10. well it was a custom button, dxDraw wouldn't be the best. oh well thanks!
  11. static images? not setElementRotation. What else can i use?
  12. when maximize is clicked... setTimer ( function() local x, y = guiGetSize ( win, false ) if y <= 537 then guiSetSize ( win, x, y + 0.04, false ) end end, 50, 0 ) the code literally does nothing. would onClientRender do the trick?
  13. Dice

    xml bad argument

    Doesn't work! Everytime i use these functions it's the same problem
  14. Dice

    xml bad argument

    i know. this is clientsided btw. Test="12345"
  15. Dice

    xml bad argument

    That's it really. 'filename' is already in the file.
×
×
  • Create New...