Raised This Month: $ Target: $400
 0% 

what is the use and need example


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 05-13-2018 , 14:34   Re: what is the use and need example
Reply With Quote #10

Quote:
Originally Posted by soumyadip77 View Post
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.
DarthMan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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