Jump to content

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Posted Image Posted Image

Guest Message by DevFuse
 

Photo

[ROZWIĄZANE] Funkcja z @


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 post


  • This topic is locked This topic is locked
1 reply to this topic

#1 Niedostateczny

    Banned

  • Zbanowany

Reputacja: 1
Nowy

  • Postów:14
  • Lokalizacja:A co was to?
Offline

Posted 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 @ ?

 



#2 BlackPerfum

    Pseudo interakcja??

  • Power User

Reputacja: 459
Wszechobecny

  • Postów:575
  • Lokalizacja:...
Offline

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.

  • +
  • -
  • 1
Chcesz napisać do mnie na PW to:
Spoiler

Mój tok myślenia jest błędny? Wskaż mi błąd zmienie to!

Aktualnie bije limit 32 graczy (łącze serwery) ale nadal są lagi przy zbyt dużym przesyłu informacji Dołączona grafika
Gra się płynnie do 40~50 graczy potem łącze pada i zamiast biegać ludzie się teleportują Dołączona grafika




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users