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.
|
Best Answer 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"
Go to the full postPosted 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 @ ?
Posted 27.06.2014 17:39 Best Answer
• 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"
Edited by BlackPerfum, 27.06.2014 17:40.
0 members, 1 guests, 0 anonymous users