Some questions:)
#1

Hello guys, so I have some questions to ask you.
  1. When we use the loops?
  2. What plugins, includes I need to use to optimize my gamemode?
  3. What can you suggest for optimizing gamemode?
Reply
#2

Quote:
Originally Posted by KlooP
Посмотреть сообщение
Hello guys, so I have some questions to ask you.
  1. When we use the loops?
  2. What plugins, includes I need to use to optimize my gamemode?
  3. What can you suggest for optimizing gamemode?
1. You use loops when for instance, you want to check a variable for each player. Let's say you want every player who is admin to see a message, well then you could loop through the players and send a message to all administrators.

2. A tip to you would be to use YCMD and SSCANF instead of strcmp and strtok in the beginning. These are developed by a man under the name ****** who is a great programmer famous for many of his works. You also want to use a good system for saving and loading data, Y_INI for instance. Or if you want you could do MySQL although it would be easier for you to do Y_INI in my opinion. Which of these are the fastest? Well it all depends on what you store and how much data you store. Anyone of them will work anyway.

3. Make sure to not make the script load and/or save things too often.
Reply
#3

Quote:
Originally Posted by AlonzoTorres
Посмотреть сообщение
1. You use loops when for instance, you want to check a variable for each player. Let's say you want every player who is admin to see a message, well then you could loop through the players and send a message to all administrators.

2. A tip to you would be to use YCMD and SSCANF instead of strcmp and strtok in the beginning. These are developed by a man under the name ****** who is a great programmer famous for many of his works. You also want to use a good system for saving and loading data, Y_INI for instance. Or if you want you could do MySQL although it would be easier for you to do Y_INI in my opinion. Which of these are the fastest? Well it all depends on what you store and how much data you store. Anyone of them will work anyway.

3. Make sure to not make the script load and/or save things too often.
Thank you very much ) Anyone else?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)