Deelay on CreateVehicle
#5

Quote:
Originally Posted by Kaliber
View Post
You can check with the profiler Plugin if there is something slowing your server down.

You should use newer mysql versions for asynchron mysql querys.

To speed this query up, write it like this:

PHP Code:
UPDATE `carsSET `Spawned`='%d' WHERE `ID`='%d' LIMIT 1 
But maybe there are some other Callbacks like
PHP Code:
OnPlayerUpdate 
or timer, which slows your server.

Check with the profiler plugin
HTML Code:
[18:46:33 01/07/19] [WARNING] CMySQLResult::GetRowDataByName - field not found ("LOcationZ") (Query: "SELECT * FROM `cars` WHERE `ID`='29' LIMIT 1")
[18:46:33 01/07/19] [ERROR] cache_get_field_content_float - invalid datatype
It was my bad... i open mysql_log and i see one error. I loaded wrong from database(i load "LOcationZ" but in database was "LocationZ" and this was the problem). Now it's fine the car is spawned instantly, thank you. How to use this profiler plugin, you can teach me please?

EDIT:
HTML Code:
This plugin can count how many times each of functions is called and how much time it takes to execute. This information is outputted in one of the currently supported formats: HTML , XML or and plain text.
How i can see that? What settings i need to do?
Reply


Messages In This Thread
Deelay on CreateVehicle - by qRazor - 06.01.2019, 15:29
Re: Deelay on CreateVehicle - by Hazon - 06.01.2019, 15:29
Re: Deelay on CreateVehicle - by qRazor - 06.01.2019, 15:31
Re: Deelay on CreateVehicle - by Kaliber - 07.01.2019, 11:38
Re: Deelay on CreateVehicle - by qRazor - 07.01.2019, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)