AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   what is the use and need example (https://forums.alliedmods.net/showthread.php?t=307503)

soumyadip77 05-13-2018 03:43

what is the use and need example
 
Please tell me About ArryCreate ArryDestry and all....where we can use and how can need 1 small example :) ALREADY READ API

HamletEagle 05-13-2018 03:50

Re: what is the use and need example
 
Check the tutorials section.

soumyadip77 05-13-2018 04:28

Re: what is the use and need example
 
Link of this portion only

HamletEagle 05-13-2018 05:28

Re: what is the use and need example
 
SEARCH. Literally all you have to do is look for dynamic arrays

fysiks 05-13-2018 13:21

Re: what is the use and need example
 
The number one most important thing to know when learning anything on the internet is knowing how to search. Stop being lazy.

Bugsy 05-13-2018 13:45

Re: what is the use and need example
 
Oh look what I found by searching the two words you're asking about.

Dynamic Array

DarthMan 05-13-2018 14:34

Re: what is the use and need example
 
Quote:

Originally Posted by soumyadip77 (Post 2591956)
Please tell me About ArryCreate ArryDestry and all....where we can use and how can need 1 small example :) ALREADY READ API

Dynamic arrays are very useful like let's say when you make a plug-in that will censor words. You will read all censored words from the ini file, for each line that was successfully read you would add the word to the dynamic array, because dynamic arrays have an infinite storing amount. Think of an array as a vector that increases with every element that gets added to it. If you would use a normal array instead it would not be a good idea in this case since it's size has to be assigned and can't be infinite. That would mean that reading more than the array size from the file would result in a plug-in 'crash'. Those arrays are also useful in situations like EntMod, where, on the FM_KeyValue registered as post on plugin_precache, you would store all entity keyvalues from the bsp file to a dyn array. Hope that will make you better understand when reading the tutorial. Also, please note that the tutorial is not for beginners so you must first have a good understanding of PAWN language and how to create simple plug-ins.

soumyadip77 05-13-2018 21:37

Re: what is the use and need example
 
Quote:

Originally Posted by Bugsy (Post 2592028)
Oh look what I found by searching the two words you're asking about.

Dynamic Array

Thats why i LOVE YOU BUGSY BECAUSE YOU CAN UNDERSTAND ME <3

instinctpt1 05-13-2018 22:20

Re: what is the use and need example
 
Quote:

Originally Posted by soumyadip77 (Post 2592079)
Thats why i LOVE YOU BUGSY BECAUSE YOU CAN UNDERSTAND ME <3

Why not thankful to hamlet too?
He made the thread (tutorial) and was first to reply back but you didn't searched for it :shock:

soumyadip77 05-13-2018 22:52

Re: what is the use and need example
 
Quote:

Originally Posted by instinctpt1 (Post 2592081)
Why not thankful to hamlet too?
He made the thread (tutorial) and was first to reply back but you didn't searched for it :shock:

yeas, thanks to halmet BOY :D


All times are GMT -4. The time now is 04:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.