Creating a server var?
#4

Quote:
Originally Posted by -Rebel Son-
Посмотреть сообщение
pawn Код:
new Example;
and you would use this as.

(say you were using it to track somthing)

pawn Код:
if(Example == 1)
---------------------------------
For a global variable.
-
pawn Код:
new Example[MAX_PLAYERS];
and you would use that as. Example[playerid];
They are both global variables, providing you don't limit the scope by placing the variables/arrays within a function.... The second example is an array with the dimensions of MAX_PLAYERS (500) so 500 cells are created as integers.
Reply


Messages In This Thread
Creating a server var? - by 1337connor - 13.02.2011, 23:45
Re: Creating a server var? - by cessil - 14.02.2011, 00:22
Re: Creating a server var? - by -Rebel Son- - 14.02.2011, 05:48
Re: Creating a server var? - by Calgon - 14.02.2011, 06:29
Re: Creating a server var? - by 1337connor - 14.02.2011, 21:21
Re: Creating a server var? - by cessil - 14.02.2011, 22:35
Re: Creating a server var? - by Ultima - 14.02.2011, 23:53
Re: Creating a server var? - by Ultima - 14.02.2011, 23:59

Forum Jump:


Users browsing this thread: 1 Guest(s)