Jump to content
Enyby

LUA scripting

Recommended Posts

7 hours ago, Enyby said:

Try call functions which not exists.

Function must be defined BEFORE call. You define it AFTER. So  BEFORE definition it is nil.

Share this post


Link to post
Share on other sites

24 minutes ago, Enyby said:

Function must be defined BEFORE call. You define it AFTER. So  BEFORE definition it is nil.

I don't understand what you are saying, can you give me an example? @Enyby

Share this post


Link to post
Share on other sites
20 minutes ago, AfifHeroes said:

I don't understand what you are saying, can you give me an example? @Enyby

see this post by the  enyby,   

> foo = function (n) return n*2 end
> = foo(7)
14

 

Function must be defined BEFORE call. You define it AFTER. So  BEFORE definition it is nil.    , because in this example is the function called before in  the variable foo     , then we can call the funtion with the foo, i think is this he means

Share this post


Link to post
Share on other sites
10 minutes ago, AfifHeroes said:

Have I tried, why instead like this?

Screenshot_2018-11-22-08-53-40-965_com.estrongs.android.pop.png

Screenshot_2018-11-22-08-53-50-890_com.estrongs.android.pop.png

Read error log, in the line 22. It is should be like  below

function WH()

Not

BY11[2] function (WH) return

Share this post


Link to post
Share on other sites
9 minutes ago, bukandewa said:

Read error log, in the line 22. It is should be like  below

function WH()

Not

BY11[2] function (WH) return

I tried it and this happened

Screenshot_2018-11-22-09-19-57-039_com.estrongs.android.pop.png

Screenshot_2018-11-22-09-20-13-575_com.estrongs.android.pop.png

Screenshot_2018-11-22-09-20-35-466_com.estrongs.android.pop.png

Share this post


Link to post
Share on other sites

please help me, i dont understand, i am a newbie, please help me

Share this post


Link to post
Share on other sites
45 minutes ago, Darkdemonkiller said:

how do that?

 

i don't know, i am a newbie

Share this post


Link to post
Share on other sites
On 11/22/2018 at 7:47 AM, Enyby said:

Function must be defined BEFORE call. You define it AFTER. So  BEFORE definition it is nil.

which function do you mean? function if BY11 or function WH ()?

Share this post


Link to post
Share on other sites

Hello @Enyby plz add link lua script.  I request bro while message toast that will show our channel or website link in the script toast message or instead of the script is ended than it prints the credit while there also show the link. 

If im ask something wrong here please delete this message from this section 

Or like this feature is not in lua im sorry ask this here 

Edited by Turbosjoker

Share this post


Link to post
Share on other sites
9 hours ago, Turbosjoker said:

Hello @Enyby plz add link lua script.  I request bro while message toast that will show our channel or website link in the script toast message or instead of the script is ended than it prints the credit while there also show the link. 

If im ask something wrong here please delete this message from this section 

Or like this feature is not in lua im sorry ask this here 

You can write your link, example "t.me/mytele", in the print, alert etc, but not clickable as url, user only can read the text link. I think it is more than enough to give contact information.

 

 

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