[Pitanje]Varijabla

Započeo McEnnedy, Septembar 29, 2011, 20:00:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

McEnnedy

Za sta sluzi u modu varijabla ?
Poslednja Izmena: Septembar 29, 2011, 20:01:05 POSLE PODNE od McEnnedy

http://wiki.sa-mp.com/wiki/Scripting_Basics#Variables

A variable is basically a bit of memory, it's where data is stored and can be changed and read as required. Variables are one or more cells, a cell is 32 bits (4 bytes) big and by default signed so they can store from -2147483648 to 2147483647 (although -2147483648 is poorly defined in PAWN and gives odd results if displayed). A variable made from more than one cell is called an array, strings are a special type of array where each cell holds a character of the string (or 4 characters in packed strings, but they're not covered here).

new myVariable;

McEnnedy

Citat: Marijo B. - K4[Я]!K3â,,¢ poslato Septembar 29, 2011, 20:03:41 POSLE PODNE
http://wiki.sa-mp.com/wiki/Scripting_Basics#Variables

A variable is basically a bit of memory, it's where data is stored and can be changed and read as required. Variables are one or more cells, a cell is 32 bits (4 bytes) big and by default signed so they can store from -2147483648 to 2147483647 (although -2147483648 is poorly defined in PAWN and gives odd results if displayed). A variable made from more than one cell is called an array, strings are a special type of array where each cell holds a character of the string (or 4 characters in packed strings, but they're not covered here).

new myVariable;
Hvala. Moze LOCK.