Jump to content
Sign in to follow this  
BosenXD

Game File

Recommended Posts

Hello i learning to create a basic script for a game. So i created a file it works correctly and below is my code.

gg.searchNumber("559910;4800", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

for i, v in ipairs(t) do
?? ?if v.flags == gg.TYPE_DWORD then
?? ??? ?v.value = "4800"
?? ??? ?v.freeze = true
?? ?end
end
gg.addListItems(t)
t = nil

So how do i seach for multiple values and freeze it i did like below one but getting error.
?

gg.searchNumber("559910;4800", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

for i, v in ipairs(t) do
?? ?if v.flags == gg.TYPE_DWORD then
?? ??? ?v.value = "4800"
?? ??? ?v.freeze = true
?? ?end
end
gg.addListItems(t)
t = nil

gg.searchNumber("559910;6800", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

for i, v in ipairs(t) do
?? ?if v.flags == gg.TYPE_DWORD then
?? ??? ?v.value = "6800"
?? ??? ?v.freeze = true
?? ?end
end
gg.addListItems(t)
t = nil

Share this post


Link to post
Share on other sites

Also i tried to record a script and it works fine but if i run that recorded script game crashes. So any idea what's happening in my script ?

Share this post


Link to post
Share on other sites

I have ten assumptions about what's wrong there.

Any idea which one is right for you?

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, Enyby said:

I have ten assumptions about what's wrong there.

Any idea which one is right for you?

Can you tell me the problem were i can fix game crashing. Also my every posting is going for pending approval Is this for everyone?

Edited by BosenXD

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...
bt365体育官bt365体育官网