define integer
#8

Quote:
Originally Posted by PawnoQ
Посмотреть сообщение
hi,

is it possible to define a dynamic integer?
Like that somehow?

pawn Код:
//lets say i store my number of the players currently in the server in PlayerCount Variable
new integer[PlayerCount];
this gives me error so is there a getaround?

+rep, thanks
Why? I believe that's too advance, when you could redefine MAX_PLAYERS and change the value (500 - default) to the server slot you have, example code below.

pawn Код:
#if defined MAX_PLAYERS
    #undef MAX_PLAYERS
#else
    #define MAX_PLAYERS (30) //For example 30 slots.
#endif
Reply


Messages In This Thread
define integer - by PawnoQ - 05.01.2014, 13:45
AW: define integer - by Nero_3D - 05.01.2014, 14:32
Re: define integer - by mamorunl - 05.01.2014, 15:06
Re: define integer - by SuperViper - 05.01.2014, 15:26
Re: define integer - by Ballu Miaa - 05.01.2014, 15:53
Re: define integer - by mamorunl - 05.01.2014, 17:08
Re: define integer - by Konstantinos - 05.01.2014, 17:33
Re: define integer - by Patrick - 05.01.2014, 17:35
Re: define integer - by mamorunl - 06.01.2014, 10:14
Re: define integer - by Konstantinos - 06.01.2014, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)