Raised This Month: $ Target: $400
 0% 

Any way to optimise this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-12-2013 , 16:16   Any way to optimise this?
Reply With Quote #1

Hey guys. So i have a code, first of all, i get the champions name, then check whether a user has this champion and apply some privileges to him. It looks like this :
Code:
new champions_name[64]; new cclass = get_champion(id) get_class_name(cclass, champions_name, 63) // Then i do tonns of checks if (equali(champions_name, "Podarok") //bla bla bla
I do like 15-20 checks- it works fine , but im pretty sure there must be a way in optimising this code.
Podarok 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 21:50.


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