Raised This Month: $ Target: $400
 0% 

Solved Equivalent of SubString() in AMXX


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-26-2022 , 19:34   Re: Equivalent of SubString() in AMXX
Reply With Quote #5

Minor efficiency tweaks
PHP Code:
new iChunkSize;
new 
msgMOTD get_user_msgid("MOTD");
    
while( 
iLen )
{
    
iChunkSize copychunkMAX_MOTD_CHUNK iLen iLen MAX_MOTD_CHUNKszMessage[a] );
    
+= MAX_MOTD_CHUNK;
        
    
message_begin(player MSG_ONE MSG_ALLmsgMOTD_player);
    
write_byte(iChunkSize == MAX_MOTD_CHUNK 1);
    
write_string(chunk);
    
message_end();

__________________

Last edited by Bugsy; 07-26-2022 at 19:34.
Bugsy 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 15:38.


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