Jump to content
  • 0

Help me


TinNguyenLuaScript
 Share

Question

help lua script memory c++ alloc = 4 
Anonymous = 16   and  Xa = ?

r=gg.getValues(cont)if it==#t then rt=r goto TinNguyenLuaScript end end::TinNguyenLuaScript::return rt end function searchEdit(tkt1,tkt2,tkt3)if #r>0 then tt={}for i=1,#r do ii=#tt+1tt[ii]={}tt[ii].address=r[i].address+tkt1 tt[ii].flags=tkt2 tt[ii].value=tkt3 gg.clearResults()end gg.setValues(cont)end end

Every time I edit the float, I can only edit the non-decimal value

For example
edited search value
The desired value is 5.2345 floats but I can only adjust it to 5 floats. How to adjust 5.2345 float?

searchEdit(-100*4,16,5)end end -- (works)

searchEdit(-100*4,16,"5,2")end end -- (doesn't work) -- actual edit value is 52 float

I need help

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
2 hours ago, TinNguyenLuaScript said:

Anonymous = 16   and  Xa = ?

https://gameguardian.net/help/classgg.html#ae9b162358f2c542801ce5e2bd0f660d1

print('gg.REGION_CODE_APP = ' ..gg.REGION_CODE_APP )

2 hours ago, TinNguyenLuaScript said:

searchEdit(-100*4,16,"5,2")

Double quotes - means that this is a variable of type string in your function it is expected to be of type number.

function searchEdit(tkt1,tkt2,tkt3)
	if #r>0 then 
	tt={}
	for i=1,#r do 
		ii=#tt+1
		tt[ii]={}
		tt[ii].address=r[i].address+tkt1 
		tt[ii].flags=tkt2 
		tt[ii].value=tkt3 
		gg.clearResults()
	end 
	gg.setValues(cont)
	end 
end 

Need converted Float to Dword

Edited by Count_Nosferatu
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.