←  Pytania

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] Funkcja z @


Najlepsza odpowiedź BlackPerfum 27.06.2014 17:39

• Public declarations
Global “simple” variables (no arrays) may be declared “public” in two ways:
⋄ declare the variable using the keyword public instead of new;
⋄ start the variable name with the “@” symbol.
Public variables behave like global variables, with the addition that the host
program can also read and write public variables. A (normal) global variable
can only be accessed by the functions in your script —the host program is
unaware of them. As such, a host program may require that you declare a
variable with a specific name as “public” for special purposes —such as the
most recent error number, or the general program state.

Tzn. tak jakby zastępuje słowo "public"

Przejdź do postu
Zablokowany

Niedostateczny - zdjęcie Niedostateczny 27.06.2014

w temacie http://amxx.pl/topic...zenie-deathmsg/

 

@REX

 

stworzył funkcję internalną @CmdTest, do czego ma służyć to @ ?

 

Odpowiedz

  • +
  • -
Najlepsza odpowiedź BlackPerfum - zdjęcie BlackPerfum 27.06.2014

• Public declarations
Global “simple” variables (no arrays) may be declared “public” in two ways:
⋄ declare the variable using the keyword public instead of new;
⋄ start the variable name with the “@” symbol.
Public variables behave like global variables, with the addition that the host
program can also read and write public variables. A (normal) global variable
can only be accessed by the functions in your script —the host program is
unaware of them. As such, a host program may require that you declare a
variable with a specific name as “public” for special purposes —such as the
most recent error number, or the general program state.

Tzn. tak jakby zastępuje słowo "public"


Użytkownik BlackPerfum edytował ten post 27.06.2014 17:40
Odpowiedz
Zablokowany