Stock nedir ?

Konu

#1
Merhabalar doğru yer mi billmiyorum ama bu stock ne olduğıunu bulamadım stock ingilizcede bir çok anlamı var stoktan tutun hisse senedine kadar wiki sayfasından pawn dilini öğrenmeye çalışıyorum ama stock ve diğer kelimelerin anlamlarını bilmiyorum bana açıklayabilecek olan var mı ? 

PHP Kod:
Functions
Functions
, as stated beforeare isolated blocks of code that perform an actionThey can be invoked, or calledwith parameters that give specific options.

There are two types of ways functions are called:

direct call You specifically call a function in your code.
callback The application calls a function in your code, as if it were an event trigger.
There are six types of functions:

nativeA directinternal function provided by the application.
public: 
A callback function that is visible to the application and other scripts.
normalA normal function that only you can call.
static: 
The scope of this function is restricted to the current filecan be used in combination with stock.
stockA normal function provided by an include file. If unusedit won't be compiled.
forward: This function is a global event provided by the application. If you implement it, it will be a callback.
All code in Pawn must exist in functions. This is in contrast to languages like PHP, Perl, and Python which let you write global code. That is because Pawn is a callback-based language: it responds to actions from a parent application, and functions must be written to handle those actions. Although our examples often contain free-floating code, this is purely for demonstration purposes. Free-floating code in our examples implies the code is part of some function.

Declaration 
PHP Kod:
Declaration
Unlike variables
functions do not need to be declared before you use themFunctions have two piecesthe signature and the bodyThe signature contains the name of your function and the parameters it will acceptThe body is the contents of its code.

Example of a function:

int AddTwoNumbers(int firstint second)
{
  int sum first second;
  return sum;
}
This is a simple function. The prototype is this line:

int AddTwoNumbers(int firstint second)
Broken downit means:

int - Return value type (integer).
AddTwoNumbers Name of the function.
int first First parameteran integer.
int second Second parameteran integer.
The body is a block of codeIt creates a new variablecalled sum, and assigns it the value of the two parameters added together (more on expressions later). The important thing to notice is the return statementwhich tells the function to end and return a value to the caller of the function. All functions return something on completionunless they return a special type called void.

function can accept any type of input, and it can return any non-array type.

You canof coursepass variables to functions:

int numbers[3] = {120};
 
numbers[2] = AddTwoNumbers(numbers[0], numbers[1]);
Note that cells are passed by valueThat istheir value cannot be changed by the function. For example:

int a 5;
 
ChangeValue(a);
 
void ChangeValue(int b)
{
   b 5;
}
This code would not change the value of aThat is because a copy of the value in a is passed instead of a itself.

More examples of functions will be provided throughout the article
PHP Kod:
Scope
Scope refers to the visibility of code
That iscode at one level may not be "visible" to code at another level. For example:

int ABC;
 
void Function1()
{
   int B;
 
   Function2();
}
 
void Function2()
{
   int C;
}
In this exampleAB, and C exist at global scopeThey can be seen by any function. Howeverthe B in Function1 is not the same variable as the B at the global levelInsteadit is at local scope, and is thus a local variable.

SimilarlyFunction1 and Function2 know nothing about each other's variables.

Not only is the variable private to Function1, but it is re-created each time the function is invoked. Imagine this:

void Function1()
{
   int B;
 
   Function1();
}
In the above example, Function1 calls itself. Of course, this is infinite recursion (a bad thing), but the idea is that each time the function runs, there is a new copy of B. When the function ends, B is destroyed, and the value is lost.

This property can be simplified by saying that a variable'
s scope is equal to the nesting level it is inThat isa variable at global scope is visible globally to all functionsA variable at local scope is visible to all code blocks "beneath" its nesting level. For example:

void Function1()
{
   int A;
 
   if (A)
   {
      A 5;
   }
}
The above code is valid since A's scope extends throughout the function. The following code, however, is not valid:

void Function1()
{
   int A;
 
   if (A)
   {
      int B = 5;
   }
 
   B = 5;
}
Notice that B is declared in a new code block. That means B is only accessible to that code block (and all sub-blocks nested within). As soon as the code block terminates, B is no longer valid. 

Ayrıca static const char ne demek her biri ayrı ayrı ve tam anlamıyla char pawn dilinde string karşılığı ama diğerlerini anlamadım static ve const( bu sadece tek bir değer alabilir ve değişemez biliyorum sadece)
Cevapla
#2
https://www.webailesi.com/konu-stock-oyuncu-sikisma-kontrolu-17638

Stock dedigin seyler bu sekilde isini kolaylastirmaya yarar.Bir komudu fazla kullanicaksan stock haline getirip tek olarak kullanabilirsin.

new const dedigin seyde sabit deger olusturursun ve static const cok kullanilmiyor.Ne oldugunu bilmiyorum yanlisim varsa duzeltebilirsiniz.Bildigim kadariyla anlatmaya calistim.

Ornek new const tag[] = ""x

deger olusturup x'i atadik.
Discord: Lynchk | Steam: Tıkla
Cevapla
#3
@Anıl Can csgo üzerinde bir farklılık varmı? stock kullanımı için yoksa 1.6 gibi aynı yapıdamı bilgi paylaşırsan arkadaşımıza iyi olacaktır.
İletişim bilgilerim;
Cevapla
#4
(17-09-2021, 16:08)MawiLarq Adlı Kullanıcıdan Alıntı: @Anıl Can csgo üzerinde bir farklılık varmı? stock kullanımı için yoksa 1.6 gibi aynı yapıdamı bilgi paylaşırsan arkadaşımıza iyi olacaktır.

Farkı yok.1.6 ile aynı mantık ile çalışıyor.

(17-09-2021, 12:42)darkwob Adlı Kullanıcıdan Alıntı: Merhabalar doğru yer mi billmiyorum ama bu stock ne olduğıunu bulamadım stock ingilizcede bir çok anlamı var stoktan tutun hisse senedine kadar wiki sayfasından pawn dilini öğrenmeye çalışıyorum ama stock ve diğer kelimelerin anlamlarını bilmiyorum bana açıklayabilecek olan var mı ? 

PHP Kod:
Functions
Functions
, as stated beforeare isolated blocks of code that perform an actionThey can be invoked, or calledwith parameters that give specific options.

There are two types of ways functions are called:

direct call You specifically call a function in your code.
callback The application calls a function in your code, as if it were an event trigger.
There are six types of functions:

nativeA directinternal function provided by the application.
public: 
A callback function that is visible to the application and other scripts.
normalA normal function that only you can call.
static: 
The scope of this function is restricted to the current filecan be used in combination with stock.
stockA normal function provided by an include file. If unusedit won't be compiled.
forward: This function is a global event provided by the application. If you implement it, it will be a callback.
All code in Pawn must exist in functions. This is in contrast to languages like PHP, Perl, and Python which let you write global code. That is because Pawn is a callback-based language: it responds to actions from a parent application, and functions must be written to handle those actions. Although our examples often contain free-floating code, this is purely for demonstration purposes. Free-floating code in our examples implies the code is part of some function.

Declaration 
PHP Kod:
Declaration
Unlike variables
functions do not need to be declared before you use themFunctions have two piecesthe signature and the bodyThe signature contains the name of your function and the parameters it will acceptThe body is the contents of its code.

Example of a function:

int AddTwoNumbers(int firstint second)
{
  int sum first second;
  return sum;
}
This is a simple function. The prototype is this line:

int AddTwoNumbers(int firstint second)
Broken downit means:

int - Return value type (integer).
AddTwoNumbers Name of the function.
int first First parameteran integer.
int second Second parameteran integer.
The body is a block of codeIt creates a new variablecalled sum, and assigns it the value of the two parameters added together (more on expressions later). The important thing to notice is the return statementwhich tells the function to end and return a value to the caller of the function. All functions return something on completionunless they return a special type called void.

function can accept any type of input, and it can return any non-array type.

You canof coursepass variables to functions:

int numbers[3] = {120};
 
numbers[2] = AddTwoNumbers(numbers[0], numbers[1]);
Note that cells are passed by valueThat istheir value cannot be changed by the function. For example:

int a 5;
 
ChangeValue(a);
 
void ChangeValue(int b)
{
   b 5;
}
This code would not change the value of aThat is because a copy of the value in a is passed instead of a itself.

More examples of functions will be provided throughout the article
PHP Kod:
Scope
Scope refers to the visibility of code
That iscode at one level may not be "visible" to code at another level. For example:

int ABC;
 
void Function1()
{
   int B;
 
   Function2();
}
 
void Function2()
{
   int C;
}
In this exampleAB, and C exist at global scopeThey can be seen by any function. Howeverthe B in Function1 is not the same variable as the B at the global levelInsteadit is at local scope, and is thus a local variable.

SimilarlyFunction1 and Function2 know nothing about each other's variables.

Not only is the variable private to Function1, but it is re-created each time the function is invoked. Imagine this:

void Function1()
{
   int B;
 
   Function1();
}
In the above example, Function1 calls itself. Of course, this is infinite recursion (a bad thing), but the idea is that each time the function runs, there is a new copy of B. When the function ends, B is destroyed, and the value is lost.

This property can be simplified by saying that a variable'
s scope is equal to the nesting level it is inThat isa variable at global scope is visible globally to all functionsA variable at local scope is visible to all code blocks "beneath" its nesting level. For example:

void Function1()
{
   int A;
 
   if (A)
   {
      A 5;
   }
}
The above code is valid since A's scope extends throughout the function. The following code, however, is not valid:

void Function1()
{
   int A;
 
   if (A)
   {
      int B = 5;
   }
 
   B = 5;
}
Notice that B is declared in a new code block. That means B is only accessible to that code block (and all sub-blocks nested within). As soon as the code block terminates, B is no longer valid. 

Ayrıca static const char ne demek her biri ayrı ayrı ve tam anlamıyla char pawn dilinde string karşılığı ama diğerlerini anlamadım static ve const( bu sadece tek bir değer alabilir ve değişemez biliyorum sadece)

Öncelikle sana önerim bu tarz kelimeleri Türkçeye çevirme çünkü tam karşılığı asla yoktur.Stock dediğimiz olay basitçe anlatıyım:

Örnek veriyim 15 satırdan oluşan bir kod yazdık.Fakat sürekli bu kod bloğunu birden fazla kullanmak istiyoruz.Aynı zamanda başka pluginlerde kullanmak istiyoruz.Stock( Türkçesi tam olarak kod bloğu diyebiliriz ) tagı ekleyerek sürekli bu kodları çalıştırıyoruz.Hem hafızadan kazanıyoruz hem de zamandan kazanmamızı sağlar.

Bunu özellikle vurgu yapmak istiyorum.Çünkü çoğu arkadaş bu gerçeği göz ardı ediyor.Gerçekten yazılımda ilerlemek istiyorsanız orta seviye İngilizce bilmek zorundasınız.İngilizceyi dışarda bırakarak tonlarca bilgiyi, kaynağı, fırsatı elinizin tersiyle geri itiyorsunuz
Son Düzenleme: 17-09-2021, 17:59, Düzenleyen: Anıl Can.
Cevapla
#5
(17-09-2021, 17:54)Anıl Can Adlı Kullanıcıdan Alıntı:
(17-09-2021, 16:08)MawiLarq Adlı Kullanıcıdan Alıntı: @Anıl Can csgo üzerinde bir farklılık varmı? stock kullanımı için yoksa 1.6 gibi aynı yapıdamı bilgi paylaşırsan arkadaşımıza iyi olacaktır.

Farkı yok.1.6 ile aynı mantık ile çalışıyor.

(17-09-2021, 12:42)darkwob Adlı Kullanıcıdan Alıntı: Merhabalar doğru yer mi billmiyorum ama bu stock ne olduğıunu bulamadım stock ingilizcede bir çok anlamı var stoktan tutun hisse senedine kadar wiki sayfasından pawn dilini öğrenmeye çalışıyorum ama stock ve diğer kelimelerin anlamlarını bilmiyorum bana açıklayabilecek olan var mı ? 

PHP Kod:
Functions
Functions
, as stated beforeare isolated blocks of code that perform an actionThey can be invoked, or calledwith parameters that give specific options.

There are two types of ways functions are called:

direct call You specifically call a function in your code.
callback The application calls a function in your code, as if it were an event trigger.
There are six types of functions:

nativeA directinternal function provided by the application.
public: 
A callback function that is visible to the application and other scripts.
normalA normal function that only you can call.
static: 
The scope of this function is restricted to the current filecan be used in combination with stock.
stockA normal function provided by an include file. If unusedit won't be compiled.
forward: This function is a global event provided by the application. If you implement it, it will be a callback.
All code in Pawn must exist in functions. This is in contrast to languages like PHP, Perl, and Python which let you write global code. That is because Pawn is a callback-based language: it responds to actions from a parent application, and functions must be written to handle those actions. Although our examples often contain free-floating code, this is purely for demonstration purposes. Free-floating code in our examples implies the code is part of some function.

Declaration 
PHP Kod:
Declaration
Unlike variables
functions do not need to be declared before you use themFunctions have two piecesthe signature and the bodyThe signature contains the name of your function and the parameters it will acceptThe body is the contents of its code.

Example of a function:

int AddTwoNumbers(int firstint second)
{
  int sum first second;
  return sum;
}
This is a simple function. The prototype is this line:

int AddTwoNumbers(int firstint second)
Broken downit means:

int - Return value type (integer).
AddTwoNumbers Name of the function.
int first First parameteran integer.
int second Second parameteran integer.
The body is a block of codeIt creates a new variablecalled sum, and assigns it the value of the two parameters added together (more on expressions later). The important thing to notice is the return statementwhich tells the function to end and return a value to the caller of the function. All functions return something on completionunless they return a special type called void.

function can accept any type of input, and it can return any non-array type.

You canof coursepass variables to functions:

int numbers[3] = {120};
 
numbers[2] = AddTwoNumbers(numbers[0], numbers[1]);
Note that cells are passed by valueThat istheir value cannot be changed by the function. For example:

int a 5;
 
ChangeValue(a);
 
void ChangeValue(int b)
{
   b 5;
}
This code would not change the value of aThat is because a copy of the value in a is passed instead of a itself.

More examples of functions will be provided throughout the article
PHP Kod:
Scope
Scope refers to the visibility of code
That iscode at one level may not be "visible" to code at another level. For example:

int ABC;
 
void Function1()
{
   int B;
 
   Function2();
}
 
void Function2()
{
   int C;
}
In this exampleAB, and C exist at global scopeThey can be seen by any function. Howeverthe B in Function1 is not the same variable as the B at the global levelInsteadit is at local scope, and is thus a local variable.

SimilarlyFunction1 and Function2 know nothing about each other's variables.

Not only is the variable private to Function1, but it is re-created each time the function is invoked. Imagine this:

void Function1()
{
   int B;
 
   Function1();
}
In the above example, Function1 calls itself. Of course, this is infinite recursion (a bad thing), but the idea is that each time the function runs, there is a new copy of B. When the function ends, B is destroyed, and the value is lost.

This property can be simplified by saying that a variable'
s scope is equal to the nesting level it is inThat isa variable at global scope is visible globally to all functionsA variable at local scope is visible to all code blocks "beneath" its nesting level. For example:

void Function1()
{
   int A;
 
   if (A)
   {
      A 5;
   }
}
The above code is valid since A's scope extends throughout the function. The following code, however, is not valid:

void Function1()
{
   int A;
 
   if (A)
   {
      int B = 5;
   }
 
   B = 5;
}
Notice that B is declared in a new code block. That means B is only accessible to that code block (and all sub-blocks nested within). As soon as the code block terminates, B is no longer valid. 

Ayrıca static const char ne demek her biri ayrı ayrı ve tam anlamıyla char pawn dilinde string karşılığı ama diğerlerini anlamadım static ve const( bu sadece tek bir değer alabilir ve değişemez biliyorum sadece)

Öncelikle sana önerim bu tarz kelimeleri Türkçeye çevirme çünkü tam karşılığı asla yoktur.Stock dediğimiz olay basitçe anlatıyım:

Örnek veriyim 15 satırdan oluşan bir kod yazdık.Fakat sürekli bu kod bloğunu birden fazla kullanmak istiyoruz.Aynı zamanda başka pluginlerde kullanmak istiyoruz.Stock( Türkçesi tam olarak kod bloğu diyebiliriz ) tagı ekleyerek sürekli bu kodları çalıştırıyoruz.Hem hafızadan kazanıyoruz hem de zamandan kazanmamızı sağlar.

Bunu özellikle vurgu yapmak istiyorum.Çünkü çoğu arkadaş bu gerçeği göz ardı ediyor.Gerçekten yazılımda ilerlemek istiyorsanız orta seviye İngilizce bilmek zorundasınız.İngilizceyi dışarda bırakarak tonlarca bilgiyi, kaynağı, fırsatı elinizin tersiyle geri itiyorsunuz

Yani beni biliyorsun anıl kral öğrenmeye çalışıyorum ama her ikisinde vakit ayıramadığım için öncelikle ingilizceyi tam anlamıyla öğreneyim dedim ama bu seferde eklenti yazamıyorum, böyle olunca da insanlara muhtaç kalıyorum bana bi eklenti yapmalarını bekliyorum bu da onların müsait olma ve ya canlarının isteme durumuna göre değişiyor ayrıca birden fazla yardım isteyince de artık yardım etme istekleri kaçıyor bu yüzden kendim öğrenmeye karar verdim. ama biraz zahmetli oluyor çünkü wiki de bulunan öğreticilerde bir çok cümlenin içersinde yer alan kelimeyi bilmiyorum sürekli çeviriyide kullanmak istemiyorum çünkü yorucu oluyor ayrıca google yada diğer çeviri siteleri günlük dile göre çeviriyor bilgisayar yada yazılım terimlerine değil. Son olarak stock hariç sanırsam sadece bunu gördüm diğer terimlerin bir çok yazılım dilinde olduğunu gördüm. tek sıkıntılarım şuanlık native, call back, enum, static, forward(bu terim gerçekten ne olduğuna dair hiç bir şey anlamadım) ,declaration,expressions gibi terimler anlaması güç. sende uzun zamandır yoğun olduğundan dolayı biraz yavaş ilerliyorum.
Cevapla
#6
@darkwob İnglizcemi ben bu wikileri okuya okuya geliştirdim Sana önerim birlikte yürütmen.Ben başta bende yazılan çoğu kelimeyi anlamıyordum.Örnek veiriym anlamadığın bir kelime olduğunda atıyorum sadece kelimenin Türkçe karşılığına bakma.Çünkü hiç bir şey anlamazsın.Kelimenin açıklmasına bak.Eğer buffer,stock gibi terimsel ifade ise BUFFER nedir diye araştır.Zaten bu kelimeler diğer yazılım dillerinde de benzer karşılığı vardır.Ama terimsel olmayan bir ingilizce kelime varsa İnglizce -İnglizce sözlüklerde kelimenin açıklmasını oku.İlk başlarda zorlanacaksın ama ileride sana çok katkısı olacak.Şuan bende bir veri analizi projesinde çalışıyorum o yüzden pek aktif olamıyorum mesajını geç gördüm.
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da
Task
Kayıt Ol
Discord Adresimize Katılın