SA-MP Forums Archive
Variables - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Variables (/showthread.php?tid=514195)



Variables - Le3aT - 20.05.2014

Please, I read wiki and didn't get a single meaning of Variables, I want someone to tell me what is Variables and wtf is "variables" what is it related to ? WHEN TO USE IT ?

I think it's used by "new", Why do we use "new" in variables ? Why not "Define" ? I think you got my meaning.


Re: Variables - Konstantinos - 20.05.2014

All of your questions can be answered by reading the SAMP Wiki:

Quote:
Originally Posted by Le3aT
Посмотреть сообщение
what is Variables ... ? WHEN TO USE IT ?
"A variable is basically a bit of memory, it's where data is stored and can be changed and read as required."

Quote:
Originally Posted by Le3aT
Посмотреть сообщение
I think it's used by "new", Why do we use "new" in variables ?
"new declares a new variable"

Quote:
Originally Posted by Le3aT
Посмотреть сообщение
Why not "Define" ?
"#define is a text replacement directive, wherever the first symbol of the define is found the rest of it will be placed."