DylanTroonesYT Posted December 27, 2018 Posted December 27, 2018 In my script I would like to delete all the results except the last one. The results are 6 and I would like to delete the first 5. Write me which command to use ??
Administrators Enyby Posted December 27, 2018 Administrators Posted December 27, 2018 getResults to table, remove last item from table, removeResults from this table. https://gameguardian.net/help/classgg.html
CmP Posted December 27, 2018 Posted December 27, 2018 This is a very basic task. You need to: 1. Get first 5 results via getResults function and store them in a variable. 2. Remove first 5 results via removeResults function by passing variable from step 1 to the function as argument. Note: this will only work as expected, if you have exactly 6 results, so you may need to check count of results via getResultsCount function and/or consider possibility of getting different amount of results.
TisNquyen Posted December 28, 2018 Posted December 28, 2018 local t = gg.getResultsCount() local t = getResults(t - 1) gg.removeResults(t)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.