Jump to content
  • 0

Weird issue with variable


loversSlayer
 Share

Question

basically I just tried to use my old script. As far as I know it works perfectly on 87.5, but I updated my GG like 5-minutes ago and that's what happened (screenshot)

the part of code:

fly_save = 9.11F

I tried just to hide it with -- and it stop crashing so there is something in syntax, but I don't have any idea what's happened cause it works correctly on GG 87.5 <.

Maybe there is something changed in new versions but I didn't found anything in changelogs.

IMG_20191215_222906.jpg

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
9 minutes ago, Enyby said:

Not a valid lua code:

https://www.lua.org/cgi-bin/demo

 

scr_1576424289.png

by the way I want to say, that there is bigger part of code for example:

 

var1 = 10F

var2 = 9.11F

var3 = 980F

var4 = 1F

but it still crashes cause of var2.

I think there is issue with dot after 9 (9.11) or something. idk

 

Edited by loversSlayer
by not buy ;) T9
Link to comment
Share on other sites

  • 0
  • Administrators

Again not a valid lua.

Just now, loversSlayer said:

var1 = 10F

var2 = 9.11F

var3 = 980F

var4 = 1F

I think you want use strings, but not use quotes.

var1 = '10F'

var2 = '9.11F'

var3 = '980F'

var4 = '1F'

Or you want make it float like this

var1 = 10.0

var2 = 9.11

var3 = 980.0

var4 = 1.0

 

Link to comment
Share on other sites

  • 0
1 minute ago, Enyby said:

Again not a valid lua.

I think you want use strings, but not use quotes.


var1 = '10F'

var2 = '9.11F'

var3 = '980F'

var4 = '1F'

Or you want make it float like this


var1 = 10.0

var2 = 9.11

var3 = 980.0

var4 = 1.0

 

now it says that issue is in

var2 = 9.11

just without dot after 9

what should I do now? 🙂

 

Link to comment
Share on other sites

  • 0
14 hours ago, loversSlayer said:

basically I just tried to use my old script. As far as I know it works perfectly on 87.5, but I updated my GG like 5-minutes ago and that's what happened (screenshot)

the part of code:

fly_save = 9.11F

I tried just to hide it with -- and it stop crashing so there is something in syntax, but I don't have any idea what's happened cause it works correctly on GG 87.5 <.

Maybe there is something changed in new versions but I didn't found anything in changelogs.

IMG_20191215_222906.jpg

I have learn Lua from zero, I always read many references about Lua in some sites. You can starting Read Lua Manual for basic understanding.

Dont be tired to solve trial and error your code. 

Link to comment
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
 Share

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