Red18 Posted June 11, 2023 Posted June 11, 2023 tr = gg.prompt({'Health Player 1: [0;1000]','Health Player 2: [0; 1000]'}, {100, 100},{'number','number'}) gg.searchNumber('1163477324', gg.TYPE_DWORD) r = gg.getResults(1,5) t = r[1].address + 0x2C gg.editAll(tr[1],gg.TYPE_FLOAT) anyone know, what to do? problem I'm having 1. I can't write float to the address 2. how to edit the offset address part " if I change FLOAT to DWORD it works, but I need FLOAT not DWORD because it is Health code".
Count_Nosferatu Posted June 12, 2023 Posted June 12, 2023 Uuups, my mistake, instead of: tt = tonumber(tr[1]) gg.setValues({{ address=r[1].address + 0x2C, flags=gg.TYPE_DWORD, value = tt }}) need to: local tt = tonumber(tr[1]) gg.setValues({{ address=r[1].address + 0x2C, flags=gg.TYPE_FLOAT, value = tt }})
Count_Nosferatu Posted June 11, 2023 Posted June 11, 2023 Maybe it will be right? tr = gg.prompt( {'Health Player 1: [0;1000]','Health Player 2: [0; 1000]'}, {100, 100}, {'number','number'} ) gg.searchNumber('1163477324', gg.TYPE_DWORD) r = gg.getResults(1,5) tt = tonumber(tr[1]) gg.setValues({{ address=r[1].address + 0x2C, flags=gg.TYPE_DWORD, value = tt }})
XEKEX Posted June 11, 2023 Posted June 11, 2023 tr = gg.prompt({'Health Player 1: [0;1000]','Health Player 2: [0; 1000]'}, {100, 100},{'number','number'}) gg.searchNumber('1163477324', gg.TYPE_DWORD) r = gg.getResults(1,5) t = r[1].address + 0x2C -- when adding and offset to any address you need to use gg.getValues() gg.editAll(tr[1],gg.TYPE_FLOAT) -- correct way tr = gg.prompt({'Health Player 1: [0;1000]','Health Player 2: [0; 1000]'}, {100, 100},{'number','number'}) gg.searchNumber('1163477324', gg.TYPE_DWORD) r = gg.getResults(1,5) local t = { {address = r[1].address + 0x2C, flags = gg.TYPE_FLOAT} } t = gg.getValues(t) -- this will get the values of the address t[1].value = tr[1] --assign the values you want gg.setValues(t) -- set the values of the address of r[1].address + 0x2C
Question
Red18
tr = gg.prompt({'Health Player 1: [0;1000]','Health Player 2: [0; 1000]'}, {100, 100},{'number','number'})
gg.searchNumber('1163477324', gg.TYPE_DWORD)
r = gg.getResults(1,5)
t = r[1].address + 0x2C
gg.editAll(tr[1],gg.TYPE_FLOAT)
anyone know, what to do? problem I'm having
1. I can't write float to the address
2. how to edit the offset address part " if I change FLOAT to DWORD it works, but I need FLOAT not DWORD because it is Health code".
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.