Beanzilla / rangedweapons-1

a mod that adds ranged weapons to minetest.
Other
1 stars 1 forks source link

Undefined variables tracking #16

Open Beanzilla opened 2 years ago

Beanzilla commented 2 years ago

I love hunting down stuff... especially when you get .... (Nice clean logs straight from Minetest)

2022-01-31 22:29:13: WARNING[Server]: Assignment to undeclared global "gunammo" inside a function at /mods/rangedweapons-1/init.lua:888.
2022-01-31 22:29:13: WARNING[Server]: Assignment to undeclared global "gunimg" inside a function at /mods/rangedweapons-1/init.lua:897.
2022-01-31 22:29:13: WARNING[Server]: Assignment to undeclared global "ammoimg" inside a function at /mods/rangedweapons-1/init.lua:906.
2022-01-31 22:29:13: WARNING[Server]: Assignment to undeclared global "hit" inside a function at /mods/rangedweapons-1/init.lua:915.
2022-01-31 22:29:13: WARNING[Server]: Assignment to undeclared global "scope_hud" inside a function at /mods/rangedweapons-1/init.lua:922.

These messages place some of these in a minetest.register_on_joinplayer().