When I try to connect my script to a local mysql database using
handler = mysql_connect("127.0.0.1", "root", "", "random_db")
I get an error saying
attempt to call global mysql_connect (a nil value)
There are only 2 English topic about this problem online and both are left unsolved. The data I entered is correct, I suppose, because I've read some tutorials and it says that I should use "127.0.0.1" as host, "root" as username and nothing as password, also the database name is correct.
All XAMPP modules running and I've downloaded mta_mysql.dll, put it in the modules folder and added
<module src="mta_mysql.dll" />
in mtaserver.conf. I copied libmysql.dll in the server folder, as it says I should.. When I start the server it says that everything is running correctly.
So I hope someone can solve it, thanks