Jump to content
  • 0

Game File


BosenXD

Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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 ?

Posted
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?

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.