[Tutorial] GetMaxPlayers()
#10

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Okay, i'm going to get this in the open: You can make a script run as fast as possible; but have fun changing it all because you've defined loads of integers based on MAX_PLAYERS that need changing due to upgrade, or NPC's...
I never said they would change during runtime either... I clearly stated that an upgrade or NPC's could change the maximum player limit. This; as I said, would make GetMaxPlayers() better (No, not for speed) because it constantly reads the actual player limit. So, let say you upgraded your server, from a 10 slot to a 15 slot - but you used an integer definition of MAX_PLAYERS; guess what, you have to back and change it all otherwise the new 15 slots wouldn't get called in player loops etc.

They are valid, granted. But not for the purposes you were giving them for; I never mentioned anything in that topic, I never said that you would beat the speed; in fact I did state it was slower...

I don't mean to be rude, but I genuinely think you mis-understood a great chunk of my original post.



Thank You. For my own information; Why wouldn't you use it in such a way?
This one is faster for me:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 200
Reply


Messages In This Thread
GetMaxPlayers() - by Ash. - 03.06.2011, 18:09
Re: GetMaxPlayers() - by Ash. - 03.06.2011, 23:28
Re: GetMaxPlayers() - by Jack_Rocker - 03.06.2011, 23:35
Re: GetMaxPlayers() - by __ - 03.06.2011, 23:45
Re: GetMaxPlayers() - by Ash. - 04.06.2011, 00:34
Respuesta: GetMaxPlayers() - by [DOG]irinel1996 - 04.06.2011, 01:24
Re: GetMaxPlayers() - by __ - 04.06.2011, 02:21
Re: GetMaxPlayers() - by nuriel8833 - 04.06.2011, 06:09
Re: GetMaxPlayers() - by Ash. - 04.06.2011, 08:32
Re: GetMaxPlayers() - by nuriel8833 - 04.06.2011, 11:59

Forum Jump:


Users browsing this thread: 3 Guest(s)