Jump to content

Recommended Posts

Posted

Please, I want help to make script :

You can see this Video for check the script that I want to do.

 

Thank you !

t

 

 

Posted
  On 6/6/2018 at 2:19 PM, nashnie29 said:

Is there a way to remove a specific item(s) from save list? 

gg.removeListItems() will remove all the save list items

Thanks

Expand  

Make a table of the values you want to remove from the list and make that the parameter of gg.removeListItems(). 

 

Posted
  On 6/7/2018 at 8:57 AM, MCbearbear said:

Make a table of the values you want to remove from the list and make that the parameter of gg.removeListItems(). 

 

Expand  

Thank you sir. thats what im trying to do. it just the address will changed every start of the game so the saved item with the old address needed to be removed .anyway i have PMed you. 

  • Administrators
Posted
  On 6/7/2018 at 9:31 AM, nashnie29 said:

the address will changed every start of the game

Expand  

Then saved list useless.

If saved list also auto rebase - you can make some names for desired values, and find it in loaded list. Load all values from it, iterate over result with check name, if name match - build new table for remove this values from saved list.

Posted
  On 6/7/2018 at 9:40 AM, Enyby said:

Then saved list useless.

If saved list also auto rebase - you can make some names for desired values, and find it in loaded list. Load all values from it, iterate over result with check name, if name match - build new table for remove this values from saved list.

Expand  

thats the problem. so the only way is your suggestion which I havent done yet. I was trying to load and iterate the old saved address with name check if true, load it to a new table for remove. thanks sir enyby

Posted (edited)
  On 6/7/2018 at 9:40 AM, Enyby said:

Then saved list useless.

If saved list also auto rebase - you can make some names for desired values, and find it in loaded list. Load all values from it, iterate over result with check name, if name match - build new table for remove this values from saved list.

Expand  

Fixed now.

Thanks Eneby and MCbearbear

Edited by nashnie29
cant find the edit button from my prev post sorry
Posted

If you know how to make this command, then give yourself guidance and a sample of which you refer to

[removeResults] = function: removeResults / * gg.removeResults (result table) -> true || string with error * / 

Remove items from the list of results found. Each list item must be a table with address and flag fields (one of the TYPE_ * constants).

Posted
  On 6/8/2018 at 6:10 AM, TisNquyen said:

If you know how to make this command, then give yourself guidance and a sample of which you refer to

[removeResults] = function: removeResults / * gg.removeResults (result table) -> true || string with error * / 

Remove items from the list of results found. Each list item must be a table with address and flag fields (one of the TYPE_ * constants).

Expand  

???

Posted (edited)
  On 6/8/2018 at 9:13 AM, TisNquyen said:

You know to write this command without error, then you learn

Expand  

I already fixed my problem using gg.removeListItems(). And your suggestion with gg.removeResults() has nothing to do with what I need to accomplish. Thanks anyway

-----After iterate the table of my SAVED Items------
oldaddress = v.address
break
end
end
a = {}
a[1] = {}
a[1].address = oldaddress
gg.removeListItems(a)
-----the rest of the codes------

 

Edited by nashnie29
added code
Posted (edited)
  On 6/8/2018 at 10:31 AM, nashnie29 said:

I have correct your problem by gg .removeListItems (). Your request with gg .removeResults () does not associated what to what to need to execute. Whatever all also thank you

Expand  

You can help me write a complete script 

I want to learn how to do it 

Edited by TisNquyen
Misspell
Posted
  On 6/8/2018 at 10:31 AM, nashnie29 said:

gg .removeResults ()

  On 6/8/2018 at 10:44 AM, nashnie29 said:

Tôi đoán bản dịch dẫn chúng ta đến sự hiểu lầm. hahaha. chắc chắn Im hơn sẵn sàng giúp đỡ?

Expand  

You can help me do this kind 

gg .removeResults ()

Expand  

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