Raised This Month: $ Target: $400
 0% 

lol


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-30-2011 , 08:30   Re: Nades Effects
Reply With Quote #7

It has nothing to do with AMXX Studio or Notepad, your code is not indented which means harder to read.

For example :

Code:
public StartGrenade(id) {     if(is_user_alive(id)) {     if(get_pcvar_num(grenade_give_start)) {     give_item(id,"weapon_hegrenade")     if(get_pcvar_num(flashbang_give_start)) {     give_item(id,"weapon_flashbang") }     if(get_pcvar_num(smokegrenade_give_start)) {     give_item(id,"weapon_smokegrenade") } } }     return HAM_IGNORED }

should be :

Code:
public StartGrenade(id) {     if(is_user_alive(id))     {         if(get_pcvar_num(grenade_give_start))         {             give_item(id,"weapon_hegrenade")             if(get_pcvar_num(flashbang_give_start))             {                 give_item(id,"weapon_flashbang")             }                         if(get_pcvar_num(smokegrenade_give_start))             {                 give_item(id,"weapon_smokegrenade")             }         }     } }

You see no difference?
__________________
Arkshine 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 20:58.


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