w temacie http://amxx.pl/topic...zenie-deathmsg/
@REX
stworzył funkcję internalną @CmdTest, do czego ma służyć to @ ?
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
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 postuNapisano 27.06.2014 17:28
w temacie http://amxx.pl/topic...zenie-deathmsg/
@REX
stworzył funkcję internalną @CmdTest, do czego ma służyć to @ ?
Napisano 27.06.2014 17:39 Najlepsza odpowiedź
• 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
0 użytkowników, 1 gości, 0 anonimowych