[Tutorial] GetMaxPlayers() > MAX_PLAYERS ?
#30

Quote:
Originally Posted by ******
Посмотреть сообщение
[HLF]Southclaw: The one issue with using a non-standard define is:

pawn Код:
#include <a_samp>
#define PLAYERS 10
#include <other_inc>
Here the other include will still use the default 500 players, despite your attempts to prevent that waste of memory, the best option would possibly be both (except when you are writing code to be released, in which case I would definitely encourage using MAX_PLAYERS).
OMG, I never through about the other includes still using 500 cells!



Quote:
Originally Posted by [FeK]DraKiNs
Посмотреть сообщение
pawn Код:
#Define LoopPlayers (%0,%1) for(new 0%=0,%0 <%1,%0++) if(IsPlayerConnected (%0) && !IsPlayerNPC (%0))
Your macro is bad, right one:

pawn Код:
#define LoopPlayers(%0,%1) for(new %0; %0 < %1; %0++) if(IsPlayerConnected(%0) && !IsPlayerNPC(%0))
Reply


Messages In This Thread
GetMaxPlayers() > MAX_PLAYERS ? - by Desert - 30.09.2010, 07:34
Re: GetMaxPlayers() > MAX_PLAYERS ? - by willsuckformoney - 30.09.2010, 07:36
Re: GetMaxPlayers() > MAX_PLAYERS ? - by [HiC]TheKiller - 30.09.2010, 07:40
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Desert - 30.09.2010, 07:44
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Slice - 30.09.2010, 08:22
Re: GetMaxPlayers() > MAX_PLAYERS ? - by [XST]O_x - 30.09.2010, 09:23
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Slice - 30.09.2010, 09:25
Re: GetMaxPlayers() > MAX_PLAYERS ? - by [XST]O_x - 30.09.2010, 09:29
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Slice - 30.09.2010, 09:30
Re: GetMaxPlayers() > MAX_PLAYERS ? - by LarzI - 30.09.2010, 09:46
Re: GetMaxPlayers() > MAX_PLAYERS ? - by legodude - 30.09.2010, 10:01
Re: GetMaxPlayers() > MAX_PLAYERS ? - by [XST]O_x - 30.09.2010, 10:10
Re: GetMaxPlayers() > MAX_PLAYERS ? - by wups - 30.09.2010, 14:34
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Claude - 30.09.2010, 15:06
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Calgon - 30.09.2010, 15:09
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Kyosaur - 30.09.2010, 15:23
Re: GetMaxPlayers() > MAX_PLAYERS ? - by ipsBruno - 01.10.2010, 17:01
Re: GetMaxPlayers() > MAX_PLAYERS ? - by The_Moddler - 01.10.2010, 17:15
Re: GetMaxPlayers() > MAX_PLAYERS ? - by LarzI - 01.10.2010, 17:44
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Claude - 01.10.2010, 18:21
Re: GetMaxPlayers() > MAX_PLAYERS ? - by LarzI - 01.10.2010, 19:31
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Calgon - 01.10.2010, 20:15
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Claude - 02.10.2010, 13:38
Re: GetMaxPlayers() > MAX_PLAYERS ? - by The_Moddler - 03.10.2010, 09:06
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Calgon - 03.10.2010, 09:26
Re: GetMaxPlayers() > MAX_PLAYERS ? - by LarzI - 03.10.2010, 10:41
Re: GetMaxPlayers() > MAX_PLAYERS ? - by ZecKo - 03.10.2010, 11:22
Re: GetMaxPlayers() > MAX_PLAYERS ? - by Mike_Peterson - 03.10.2010, 12:12
Re: GetMaxPlayers() > MAX_PLAYERS ? - by ZecKo - 03.10.2010, 12:28
Re: GetMaxPlayers() > MAX_PLAYERS ? - by MrDeath537 - 06.01.2011, 22:51
Re: GetMaxPlayers() > MAX_PLAYERS ? - by aco_SRBIJA - 22.03.2012, 10:12

Forum Jump:


Users browsing this thread: 1 Guest(s)