Jump to content
Qos

Script wrong help me @Enyby or great scripter

Recommended Posts

gg.searchNumber(F[9];1;F[1];2;F[3];3;F[7];4;F[5];5;F[10];6;F[2];7;F[4];8;F[8];9;F[6];10;F[14];11;F[11];12;F[12];13;F[13]::105,gg.TYPE_DWORD) give me right command😭

Share this post


Link to post
Share on other sites

21 hours ago, Qos said:

gg.searchNumber(F[9];1;F[1];2;F[3];3;F[7];4;F[5];5;F[10];6;F[2];7;F[4];8;F[8];9;F[6];10;F[14];11;F[11];12;F[12];13;F[13]::105,gg.TYPE_DWORD) give me right command😭

try gg.searchNumber(..F[9]..;1;..F[1]..;2; etc...

Share this post


Link to post
Share on other sites
Posted (edited)

F[9] is an array of table F.
; is a string, when concatenate a array and a string, use ".." also you must add quotation marks to differentiate string.

";" instead of ;

Solution:

gg.searchNumber(F[9]..";1;"..F[1]..";2;"..F[3]..";3;"..F[7]..";4;"..F[5]..";5;"..F[10]..";6;"..F[2]..";7;"..F[4]..";8;"..F[8]..";9;"..F[6]..";10;"..F[14]..";11;"..F[11]..";12;"..F[12]..";13;"..F[13].."::105",gg.TYPE_DWORD) 

It's awful and many works. Do this 

function generate(tab)
    local str = ""
    for i = 1, #tab do
        str = str .. F[i] .. ";" .. i .. ";"
        if i == #tab then
            str = str .. F[i] .. "::" .. tostring(i * 4 - 3)
        end
    end
  	return str
end

F = gg.prompt({"Question 1 ","Question 2"},{},{"number","number"})
gg.searchNumber(generate(F),4)

For second method, you need to rearrange your question so that it will become F[1] 1 F[2] 2 F[3] 3 ...

Edited by ItsSC

Share this post


Link to post
Share on other sites

Thanks bro

Share this post


Link to post
Share on other sites

Bro did you know if it possible to use on off option inside simple menu ?

I tried to put an on off option inside simple menu but he dont turn off the hack only enable

Screenshot_20200424-153942_QuickEdit.jpg

Screenshot_20200424-153950_QuickEdit.jpg

new mc5 script test.lua

Share this post


Link to post
Share on other sites
Posted (edited)

 

hi

i put some of your script into On/Off script that i made sometime ago.

see if its work for you.

TESTCHOICEOnOff.lua

Edited by MonkeyGuy001

Share this post


Link to post
Share on other sites
On 4/24/2020 at 7:12 PM, Fallen_Stress said:

Bro did you know if it possible to use on off option inside simple menu ?

I tried to put an on off option inside simple menu but he dont turn off the hack only enable

Screenshot_20200424-153942_QuickEdit.jpg

Screenshot_20200424-153950_QuickEdit.jpg

new mc5 script test.lua 2.96 kB · 3 downloads

The problem is that you are using  "if   elseif",

so only one condition gets executed even if you select multiple options.

IMG_20200429_185059.jpg

Share this post


Link to post
Share on other sites

Thanks

[added 2 minutes later]

I have another question please I would like to know how people code to have this 

Screenshot_20200502-160457_YouTube.jpg

Share this post


Link to post
Share on other sites
On 5/4/2020 at 6:02 PM, Fallen_Stress said:

Thanks

[added 2 minutes later]

I have another question please I would like to know how people code to have this 

Screenshot_20200502-160457_YouTube.jpg

search, how to make seekbar using gg.prompt on Google, you will find

Share this post


Link to post
Share on other sites

Thanks pro 

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

×
×
  • Create New...