Raised This Month: $32 Target: $400
 8% 

[REQ] menu proprieties


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-15-2017 , 13:27   Re: [REQ] menu proprieties
Reply With Quote #12

Quote:
Originally Posted by Depresie View Post
I was also thinking about strings
A native to retrieve how many times a string contains a character
Adding a param to return on what cells it is present would also be nice

PHP Code:
// Prototype
stroc(const string[], "c")

//Functionality
new iNumO stroc("cool shirt""o")
// iNumO would be equal to 2 in this case 
May I ask you, what is the reason for this to get implemented? Because you can simply use something like this:
PHP Code:
    new data[6], _dummycount
    menu_item_getinfo
(menuitem_dummydatacharsmax(data), .callback _dummy)
    for(new 
ii<charsmax(data); i++)
        if(
data[i] == 'o')
            
count++ 
Idk if you were trying to make a joke or what, but it is random and useless. And yes, maybe you want to use that function because this would be faster in a module, but in that case, I would like to get this: included into next update.
PHP Code:
stock Array_Find(item, array[], size) {
    for(new 
ii<sizei++)
        if(array[
i] == item)
            return 
i
    
return -1

because I use this in one of my plugins. anyways, no offence, just giving my thoughts on that one. And I support the page numeration idea.
__________________
retired chump

Last edited by DjSoftero; 02-01-2020 at 06:25. Reason: grammar
DjSoftero 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:25.


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