Thank you for your reply, you have given me a way better explanation of what's going on in the script, than the guys at server hosting in customer service.
But the thing is I don't own this script, and I don't know a thing about Lua scripting, sooo...
I understand what you wrote, and you say the problem is in mysql?
Here's a picture of a gate in MySQL. Image
Isn't "default state" x y z as in dis and "changed state" x2 y2 z2 as in dis2?
How do I fix it?
I have this script and it worked before but after a server restart, it doesn't..
It's a script for opening gates.
The full code: https://pastebin.com/Y6SPktEU
Then I get these erros whenever I try to open a gate with the script's command, which is /gate.
[21:55:57] WARNING: mta_gates/server.Lua:99: Bad argument @ 'getDistanceBetweenPoints3D' [Expected vector3 at argument 4, got none]
[21:55:57] ERROR: mta_gates/server.Lua:101: attempt to compare nil with number
How do I fix this?
Sziasztok!
Fejlesztő íránt érdeklődnék egy 0-ról írt RP szerver készítéséhez.
Maximum 100 Eurót adunk ki a munkáért.
Elérhetőség:
Skype: benedek.berecz