Scope of variables in PAWN?
#5

The value will remain the same regardless of which scope you change it in, as long as it's a global variable.

pawn Код:
new var;

public OnGameModeInit() {
   var = 2;
}

//var is always 2 unless changed now
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)