Raised This Month: $ Target: $400
 0% 

Check kills


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-27-2014 , 13:51   Re: Check kills
Reply With Quote #8

Quote:
Originally Posted by Freezo Begin View Post
Well . Thank's SpeeDer ! i have try this
Code:
public Hook_Death(){     new kill,vic,TopKills;         kill = read_data(1)     vic = read_data(2)         if (kill != vic){         TopKills += 1;     }         switch(TopKills)     {         case 0..2: g_Kills[kill] += 1             case 3..5: g_Kills[kill] += 2             case 6..10: g_Kills[kill] += 3         }     return 0; }
and my question is TopKills += 1 . is it like TopKills++ ?
var ++ is the same as var += 1. It will add 1 to the actual value of the variable.
HamletEagle 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 21:09.


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