What is an array?
#1

One thing i didnt knew through my entire coding and scripting knowledge is array[], im totally confused to know whats the meaning of it literally. Could someone explain it to me in the easiest way?

Int - set of numbers
Float - set of decimal numbers, right?
String - set of text , right ?
Variable - self explanatory
Array[] - I guess its a set of group that contains text, int , string, floats ? Im confused
Reply
#2

https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays
Reply
#3

Array can contain same or different values as a group.

For example, instead of creating
PHP код:
new Textdraw1;
new 
Textdraw2;
/.../ 
you can simply create it in one line:
PHP код:
new Textdraw[2]; //it means there are Textdraw[0] and Textdraw[1] 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)