About CSSTATS.SMA
I used a new method to calc a Rank: Based on Skill..
but whats wrong with this simple function: PHP Code:
Code:
//AMXXPC compile.exeSorry for code, i need to use switch() in whole function, but dont works again :x |
Re: About CSSTATS.SMA
You declare the function as integer (implied when no tag) and you try to return a float.
Either you declare it like that : public Float:get_score(Stats[11], Body[8]) or you need to round the return result. |
Re: About CSSTATS.SMA
plus, switch() only support integar matching, and you should manage your if-else if statement like this
if( x > 1000 ) else if( x > 750 ) else if( x > 500 ) ... else if( x > 0 ) else |
Re: About CSSTATS.SMA
OK, i will be try, but in another plugin this function is compiling normally.
Quote:
PHP Code:
|
Re: About CSSTATS.SMA
switch is not a proper choice when you deal with large scale.
the only benefit is just make your code so-called clear but not that efficient you think. |
Re: About CSSTATS.SMA
I will be try, but the method of calc skill of a player is correct applied, and using a float number?
EDIT: SOMEONE? |
| All times are GMT -4. The time now is 08:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.