Raised This Month: $ Target: $400
 0% 

Please tell me one basic thing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-19-2013 , 07:27   Please tell me one basic thing
Reply With Quote #1

My plugin shows the Kills Per Minute Rate of a player....


for this, a simple calculation is to be done.

PHP Code:
public info(id){
new 
userTime
    userTime 
get_user_time(id)
    
    new 
frags 
    frags 
get_user_frags(id)

    new 
deaths
    
deaths get_user_deaths(id)
    
    new 
kpm
    kpm 
deaths/frags*userTime
    
    set_hudmessage
(25500, -1.00.01)    
    
show_hudmessage(id"You killed %i , Died %i times and playing form %i seconds^n[KPM RATE : %i]",frags,deaths,userTimekpm)

what is the mistake the "kpm =.........Time" line??

Last edited by ezio_auditore; 11-19-2013 at 07:28.
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
 



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


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