Jump to content
  • -1

SeekBar Problems


Red18
 Share

Question

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".

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

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 }})

Edited by Count_Nosferatu
Link to comment
Share on other sites

  • 0

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 }})

 

Link to comment
Share on other sites

  • 0
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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.