Attempt to compare nil with number

need some help here :slight_smile:


1 Like

In line 153 need’s to be like this

if xPlayer.getJob().grade >= config.grade then

check if xPlayer.getJob().grade and config.grade have Values.

Maybe you have an issue with the xPlayer Variable being Nil !
Also check if your table config has the Column grade!

I tried but still cause an error

I’m an Amateur, i just starting with this. Maybe you can look over this.

main.lua (17.5 KB)
sql.sql (673 Bytes)

1 Like

main.lua (17.5 KB)
Maybe try this

Okay, yea i try it but still Error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.