BaldiGT Posted September 25, 2021 Posted September 25, 2021 Script ended: { -- table(cfcd1b3) [1] = { -- table(2fc0370) ['address'] = 0xbef6fc04, ['flags'] = 4, -- gg.TYPE_DWORD ['freeze'] = false, ['freezeType'] = 0, -- gg.FREEZE_NORMAL ['name'] = 'ID - Rush', ['value'] = -1019895808, }, [2] = { -- table(42adf6e) ['address'] = 0xbef6fc0c, ['flags'] = 4, -- gg.TYPE_DWORD ['freeze'] = false, ['freezeType'] = 0, -- gg.FREEZE_NORMAL ['name'] = 'ID - Magic', ['value'] = -1019890352, }, } Exit. How to copytext a value from table [2]? When im trying to copy with this code local h = gg.getListItems() gg.copyText(h[2].value) its just copy the first value -1019895808,
BaldiGT Posted September 25, 2021 Author Posted September 25, 2021 6 minutes ago, BadCase said: which fields are you trying to copy? [2] = { -- table(42adf6e) ['address'] = 0xbef6fc0c, ['flags'] = 4, -- gg.TYPE_DWORD ['freeze'] = false, ['freezeType'] = 0, -- gg.FREEZE_NORMAL ['name'] = 'ID - Magic', ['value'] = -1019890352, }, The value -1019890352, Im not use a table just add them into saved list items, im using h = gg.getResults(1) h[1].name = "example" h[1].address = "bla bla bla" gg.addListItems(h) I want to add the address to saved list items and also i want to copy the value from that address
BadCase Posted September 25, 2021 Posted September 25, 2021 h = gg.getResults(1) h[1].name = "example" gg.copyText(h[1].value) gg.addListItems(h)
Lover1500 Posted September 25, 2021 Posted September 25, 2021 2 hours ago, BaldiGT said: local h = gg.getListItems() gg.copyText(h[2].value) its just copy the first value -1019895808, I think there may be an extra value above them in saved list.thats why you try copy h[2].value but script copied first value. Try print and check the result. h= gg.getListItems() print(h) 2 hours ago, BaldiGT said: Script ended: { -- table(cfcd1b3) [1] = { -- table(2fc0370) ['address'] = 0xbef6fc04, ['flags'] = 4, -- gg.TYPE_DWORD ['freeze'] = false, ['freezeType'] = 0, -- gg.FREEZE_NORMAL ['name'] = 'ID - Rush', ['value'] = -1019895808, }, [2] = { -- table(42adf6e) ['address'] = 0xbef6fc0c, ['flags'] = 4, -- gg.TYPE_DWORD ['freeze'] = false, ['freezeType'] = 0, -- gg.FREEZE_NORMAL ['name'] = 'ID - Magic', ['value'] = -1019890352, }, } You have set the names. You can also copy value by checking names. iterate table.
BaldiGT Posted September 25, 2021 Author Posted September 25, 2021 10 hours ago, Lover1500 said: I think there may be an extra value above them in saved list.thats why you try copy h[2].value but script copied first value. Try print and check the result. h= gg.getListItems() print(h) You have set the names. You can also copy value by checking names. iterate table. Sometimes i got the value from table [1] and [2] is same, The value is not writen on the h[2].value because i have not use that value, but if i put gg.getListItems(h) gg.searchNumber(h[2].value) and then gg.copyText(h[2].value) its work, but i dont want to use gg.searchNumber, I want to know how to get a data list from different table
Question
BaldiGT
Script ended:
{ -- table(cfcd1b3)
[1] = { -- table(2fc0370)
['address'] = 0xbef6fc04,
['flags'] = 4, -- gg.TYPE_DWORD
['freeze'] = false,
['freezeType'] = 0, -- gg.FREEZE_NORMAL
['name'] = 'ID - Rush',
['value'] = -1019895808,
},
[2] = { -- table(42adf6e)
['address'] = 0xbef6fc0c,
['flags'] = 4, -- gg.TYPE_DWORD
['freeze'] = false,
['freezeType'] = 0, -- gg.FREEZE_NORMAL
['name'] = 'ID - Magic',
['value'] = -1019890352,
},
}
Exit.
How to copytext a value from table [2]?
When im trying to copy with this code
local h = gg.getListItems()
gg.copyText(h[2].value)
its just copy the first value -1019895808,
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.