Raised This Month: $ Target: $400
 0% 

Help with improving and optimizing code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-19-2014 , 09:08   Re: Help with improving and optimizing code
Reply With Quote #1

In fact just need this:

PHP Code:
#define MAXPLAYERS 32
new boolleftHand[MAXPLAYERS 1]

// ...

if (leftHand[id])
{
    
menu_additem(menu"\dLeft Hand \r[current hand]"""0);
    
menu_additem(menu"\wRight Hand"""0);
}

else
{
    
menu_additem(menu"\wLeft Hand"""0);
    
menu_additem(menu"\dRight Hand \r[current hand]"""0);

Edit:
About the offsets, its better way. More efficience.
__________________

Last edited by Jhob94; 11-19-2014 at 09:10.
Jhob94 is online now
bardukis
Member
Join Date: Jul 2014
Old 11-19-2014 , 13:08   Re: Help with improving and optimizing code
Reply With Quote #2

Thank you @Xunfop, Thank you Johb94.
Quote:
Originally Posted by Jhob94 View Post
About the offsets, its better way. More efficience.
Sorry but, I searched about offsets and I didnt find something... I even dont know what is offset. Can you show me?
bardukis is offline
Reply



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 17:32.


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