Jump to content
  • 0

Help me


TinNguyenLuaScript

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

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.