Some answers please?
#3

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Having a timer running every .5 seconds is obviously going to reduce performance as appose to using other methods, especially if it's cluttered.
What other methods, can you give some examples?

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Using a lot of variables is also something that should generally be avoided, use data enums and arrays (or utilize MySQL tricks so you don't store locally where able). Things such as g_God where it's either a 0 or 1 value could also be used as a boolean, which has two values: true and false. Simply prefix your variable with bool: (bool: g_God) in the definition and use the true/false values instead of nunmerics.
Well I have no clue on how to use MySQL and I don't think I want to delay the release so that I can learn it and adapt the entire script because the whole server relies on storing those 1 and 0s. About boolean, I may use it if it is lighter/better than the current way I'm doing it.

Thanks anyway.
Reply


Messages In This Thread
Some answers please? - by Dragonic - 03.06.2017, 02:17
Re: Some answers please? - by Abagail - 03.06.2017, 02:37
Re: Some answers please? - by Dragonic - 03.06.2017, 02:43
Re: Some answers please? - by Abagail - 03.06.2017, 02:50
Re: Some answers please? - by Dragonic - 03.06.2017, 03:04
Re: Some answers please? - by Abagail - 03.06.2017, 03:30

Forum Jump:


Users browsing this thread: 1 Guest(s)