SA-MP Forums Archive
[QS] 2 question about script . - 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: [QS] 2 question about script . (/showthread.php?tid=380670)



[QS] 2 question about script . - M3mPHi$_S3 - 26.09.2012

Hello , i want to make some thing clear for my self :

1 ) what does enum work for ?
2 ) what is " STOCK "

? I wanna know this two things THANK :


Re: [QS] 2 question about script . - XtremeR - 26.09.2012

1-Enumerations are a very useful system for representing large groups of data and modifying constants quickly. There are a few main uses - replacing large sets of define statements, symbolically representing array slots (these are actually the same thing but they look different) and creating new tags.

2-Stocks are a form of function. The only noticeable difference between a stock and a function is that when you don't use a stock, you don't get a warning. Stocks are powerful little tools that allow you to move large repeated bits of code away from the main block, making it easier to edit something that is used in multiple places.

i hope that i was helpful, use wiki.samp.com for more..


Re: [QS] 2 question about script . - Vince - 26.09.2012

At least when you copy/paste from the wiki have the decency to include the link to the article. https://sampwiki.blast.hk/wiki/Keywords:Initialisers


Re: [QS] 2 question about script . - M3mPHi$_S3 - 27.09.2012

Any way thanks to both of you .