Scope of variables in PAWN?
#6

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
What is it's memory allocation? For example if I do

pawn Код:
//At Top
new A;

//At OnGameModeInit CB
A = 2;

//At OnPlayerSpawn CB
print(A); // Is the variable's A value still 2?
Edit: When will the memory get destroyed?
I don't know for sure, but I'd imagine when the program exits.
Reply


Messages In This Thread
Scope of variables in PAWN? - by T0pAz - 28.12.2011, 17:03
Re: Scope of variables in PAWN? - by CaHbKo - 28.12.2011, 17:07
Re: Scope of variables in PAWN? - by randomkid88 - 28.12.2011, 17:08
Re: Scope of variables in PAWN? - by T0pAz - 28.12.2011, 17:13
Re: Scope of variables in PAWN? - by Calgon - 28.12.2011, 17:17
Re: Scope of variables in PAWN? - by Tannz0rz - 28.12.2011, 17:19
Re: Scope of variables in PAWN? - by T0pAz - 28.12.2011, 17:19
Re: Scope of variables in PAWN? - by Calgon - 28.12.2011, 17:23
Re: Scope of variables in PAWN? - by T0pAz - 28.12.2011, 17:26
Re: Scope of variables in PAWN? - by Ash. - 28.12.2011, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)