sendmessagetoadmins problem
#6

Quote:
Originally Posted by MrakBuster
Посмотреть сообщение
What is the difference between regular loop and this one?
This is more optimized. Why?
- Your loop do : 0 to 1000 but I'm pretty sure you don't have 1000 players on your server
- You are checking admin level for people doesn't exist

- This one loop through 0 to the highest player id
- It check if the player is connected or not
You can even add && !IsPlayerNPC(i) if you have bots on your server.
Reply


Messages In This Thread
sendmessagetoadmins problem - by MrakBuster - 08.02.2018, 23:24
Re: sendmessagetoadmins problem - by solstice_ - 08.02.2018, 23:38
Re: sendmessagetoadmins problem - by MrakBuster - 08.02.2018, 23:46
Re: sendmessagetoadmins problem - by Dayrion - 09.02.2018, 00:21
Re: sendmessagetoadmins problem - by MrakBuster - 09.02.2018, 00:34
Re: sendmessagetoadmins problem - by Dayrion - 09.02.2018, 01:34

Forum Jump:


Users browsing this thread: 1 Guest(s)