Raised This Month: $ Target: $400
 0% 

Array Size


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 11-07-2020 , 10:54   Re: Array Size
Reply With Quote #6

Quote:
Originally Posted by Napoleon_be View Post
@Black Rose; Thanks for the info, do you have any examples where it could be used to be efficient?
The bottom of my previous post contains what I would've used.

Or if you want to declutter the plugin_init() a bit and also include say_team:
Code:
public plugin_init() {     for( new i ; i < sizeof(szCommands); i++ )         register_clcmd_say(szCommands[i], "checkSettings");     //... } //... stock register_clcmd_say(szCommand[], szFunction[]) {     new szTemp[32] = "say_team ";     copy(szTemp[9], charsmax(szTemp) - 4, szCommand);     register_clcmd(szTemp, szFunction);         szTemp[5] = 's';     //szTemp[6] = 'a'; // This is already the 'a' in the word "team"     szTemp[7] = 'y';         register_clcmd(szTemp[5], szFunction); }
__________________

Last edited by Black Rose; 11-08-2020 at 05:57.
Black Rose 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 14:13.


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