Raised This Month: $ Target: $400
 0% 

WTH is wrong in this 3 line code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 10-28-2013 , 14:16   WTH is wrong in this 3 line code?
Reply With Quote #1

WTH is wrong here?

PHP Code:
public on_player_death(){
    new 
Attacker    =    read_data(1);
    if(
get_user_frags(Attacker) > 1){
        
client_print(0print_chat"blarp!!!!!!!");
    }

It would print message when I get 3 kills not when I get 2 kills and If I do:

PHP Code:
public on_player_death(){
    new 
Attacker    =    read_data(1);
    if(
get_user_frags(Attacker) >= 1){
        
client_print(0print_chat"blarp!!!!!!!!!");
    }    

It would print when I get 3 kills. WHY??? What is wrong here???? Why won't it print after just 1 kill ????
devWaleed is offline
Send a message via Skype™ to devWaleed
 



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 23:14.


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