Raised This Month: $ Target: $400
 0% 

Optimize Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 07-17-2018 , 13:07   Optimize Plugin
Reply With Quote #1

Hey friends, I make a plugin. It has 3951 lines so I want to make it optimized for server.
In menus, what I should use?

Code:
static data[6], name[32], access, callback, key;
menu_item_getinfo(menu, item, access, data, charsmax(data), _, _, callback);
key = str_to_num(data);

// or

new data[6], name[32], access, callback;
menu_item_getinfo(menu, item, access, data, charsmax(data), _, _, callback);
new key = str_to_num(data);
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }

PurposeLessx 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 02:19.


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