Jump to content
  • 0

Script wrong help me @Enyby or great scripter


Question

Posted

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😭

9 answers to this question

Recommended Posts

  • 0
Posted
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...

  • 0
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
  • 0
Guest ATP-RAY2OP
Posted
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

  • 0
Posted

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

  • 0
Guest ATP-RAY2OP
Posted
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

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.