Jump to content
  • 0

value type issue


loversSlayer

Question

part of code:

             local act = gg.prompt({'Jump boost'}, nil,{'number'})
                   if act == nil then mainmenu() end
        gg.setRanges(gg.REGION_CODE_APP)
        gg.searchNumber(jump_save, gg.TYPE_FLOAT)
        gg.getResults(1)
        gg.editAll(act, gg.TYPE_FLOAT)

For some reason gg acts like im trying to use broken value or smth. Wanna know why it says that var "act" is unexpected. Tried to enter "12" or "12.5" and got same error, so idk what to do next.

PicsArt_03-21-11.00.05.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • Administrators

Everything is written in the error text there.
A string was expected, and a table was received.
Read what value the prompt call returns.
Try to print the value of the variable to understand what is there.

Link to comment
Share on other sites

Just now, Enyby said:

Everything is written in the error text there.
A string was expected, and a table was received.
Read what value the prompt call returns.
Try to print the value of the variable to understand what is there.

already fixed it, i just got that im trying to input full table instead of using current value of promp array, ty ❤️

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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