Raised This Month: $ Target: $400
 0% 

Solved amxxpc crashes when using tagof


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-06-2017 , 10:09   amxxpc crashes when using tagof
Reply With Quote #1

Code:
stock ArrayList.Clear( Arrayname )                  ArrayDestroy( Arrayname ); stock ArrayList.Get( Arrayname, key, var[] )        ArrayGetString( Arrayname, key, var, charsmax( var ) ) stock ArrayList.Count( Arrayname )                  ArraySize( Arrayname ); stock ArrayList.Add( Arrayname, string )            ArrayPushString( Arrayname, string ); stock ArrayList.Remove( Arrayname, {Int,String}:key[], tagType = tagof(key), exactMatch = true, maxBuff = 224 ){         if( tagType == tagof(Int:) ) ArrayDeleteItem( dynamicMenu, str_to_num(key) ) // = crash     else if( tagType == tagof(String:){ // = crash                 new var[maxBuff];         for( new i; i < ArrayList.Count( dynamicMenu ); i++ ){             ArrayList.Get( Arrayname, i, var )             if( exactMatch ?                 equal( var, key ) : ( containi(var, key ) != - 1  ) ){                 // Do something             }                     }     }   }
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.

Last edited by SpawnerF; 07-07-2017 at 09:15.
SpawnerF is offline
 


Thread Tools
Display Modes

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 23:09.


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