Please tell me one basic thing
My plugin shows the Kills Per Minute Rate of a player....
for this, a simple calculation is to be done. PHP Code:
|
Re: Please tell me one basic thing
userTime is in Seconds, not Minutes. Plus, your calculation is incorrect, KPM = Kills / Minutes
|
Re: Please tell me one basic thing
Quote:
what's the mistake |
Re: Please tell me one basic thing
Are you even calling the function? We can't help you there as you don't provide all of the code
|
Re: Please tell me one basic thing
Quote:
well... if i provide the whole code and you correct it then i post it in new plugin submission, a moderator post will appear saying plugin originally posted by you.... i know how to call a function.. i typed register_clcmd("say /kpm","info") |
Re: Please tell me one basic thing
We cannot assist you if we don't see more of the code
|
Re: Please tell me one basic thing
Quote:
PHP Code:
|
Re: Please tell me one basic thing
Everything looks fine to me except that your calculation of KPM is completely wrong and also the y-position of your HUD message is questionable. I'm not even sure you will be able to see it with that value. Test it with the default, -1, for both x- and y-position (assuming you are not able to see the message).
|
Re: Please tell me one basic thing
Quote:
|
Re: Please tell me one basic thing
Quote:
|
| All times are GMT -4. The time now is 23:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.