Raised This Month: $ Target: $400
 0% 

Gladiator Mod v1.3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 11-08-2010 , 13:27   Re: Gladiator Mod v1.0
Reply With Quote #11

Quote:
Originally Posted by fysiks View Post
  • Use cmd_access(), else use console_print(id, ...) instead of if(id){ client_print(id, print_console, ...) }
  • Not critical but: case 10,9,8,7,6,5,4,3,2,1 case 1..10 for readaibility
  • cache values that are retrieved from a native more than once in the same function (might be eliminated by next suggestion)

  • PHP Code:
    if(g_GP[id] >= get_pcvar_num(cvar_hpcost))
    {
        
    // code
    }
    else if(
    g_GP[id] < get_pcvar_num(cvar_hpcost))
    {
        
    // code

    situations like this are redundant as these two cases are mutually exclusive. Change the else if() to just else. I saw at least 6 places that use this. I would probably use the < as the conditional instead of >= (difference is probably negligible)
yes, then edit it, I had escaped jajaja.

then makes a video on how

sorry for my bad English, use translator
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
 



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 20:08.


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