Need help to fix this error


Goodnight. I need help to fix this error. Does anybody know what is it due to?

Hi @FENIX-RP,

As the script error states, Query expected a string but received object instead.

MySQL queries are commands which must be in a string format, for example: SELECT * FROM my_database_tables. Instead of passing SELECT * FROM my_database_tables, your script currently is passing an object of some sort.

To solve your problem, find the exact line the script error is referring to and ensure that a string query is passed rather than an object.




These two are the lines to which the error refers. Do you see something wrong?
PS: the error pops up when you spawn with your character after selecting the spawn location