Hi, so i have problem, i want to search current player username and edit it in other function, but i dont know how to get previous search results to work in other function. Script is below:
function namechanger()
gg.setRanges(old)
gg.alert("remember CaPs!")local searcher = gg.prompt({"Username: leave -> ; <-!!!!!"},{[1]=';'})if searcher[1]then
gg.searchNumber(searcher[1])local r = gg.getResults(10000)
gg.toast("Now time to edit the name")
editer()else
test()endendfunction editer()
editor = gg.prompt({"Edited Username Here:"},{[1]=";"},nil)if editor[1]then
gg.loadResults(r)
gg.editAll(editor[1])
test()
gg.toast("Name Changed")
test()
gg.clearResults(r)endif editor[nil]then test()endend
If you know how to load previous function results into next function, pls help me. This username is not changing to what i want it to.
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.
Question
Kiloo-kuoma
Hi, so i have problem, i want to search current player username and edit it in other function, but i dont know how to get previous search results to work in other function. Script is below:
If you know how to load previous function results into next function, pls help me. This username is not changing to what i want it to.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.