Raised This Month: $51 Target: $400
 12% 

[REQ] Worst round player


Post New Thread Reply   
 
Thread Tools Display Modes
jonatat
Senior Member
Join Date: Dec 2017
Old 01-31-2018 , 01:46   Re: [REQ] Worst round player
Reply With Quote #21

Quote:
Originally Posted by Natsheh View Post
The error is not clear anyway i updated the code and removed clamp

Should work fine by now.
Really strange. I dont get worst round player message, and in console i getting error:

PHP Code:
L 01/31/2018 00:00:18: [AMXXDisplaying debug trace (plugin "worstplayer.amxx"version "unknown")
L 01/31/2018 00:00:18: [AMXXRun time error 4index out of bounds 
L 01
/31/2018 00:00:18: [AMXX]    [0worstplayer.sma::FindWorstPlayer (line 83)
L 01/31/2018 00:00:18: [AMXX]    [1worstplayer.sma::OnRoundEnd (line 16
Line 83 looks like that:
PHP Code:
 if( ( g_iKillsiTempID ] < g_iKillsiWorstPlayer ] ) ) 
Line 16 looks like that:
PHP Code:
new iWorstPlayerId FindWorstPlayer( ); 

Last edited by jonatat; 01-31-2018 at 01:49.
jonatat is offline
jonatat
Senior Member
Join Date: Dec 2017
Old 01-31-2018 , 01:48   Re: [REQ] Worst round player
Reply With Quote #22

Quote:
Originally Posted by edon1337 View Post
Did you test my version? I need to know whether it works or not.
I'l test today! Thanks!
jonatat is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-31-2018 , 05:38   Re: [REQ] Worst round player
Reply With Quote #23

Quote:
Originally Posted by jonatat View Post
Really strange. I dont get worst round player message, and in console i getting error:

PHP Code:
L 01/31/2018 00:00:18: [AMXXDisplaying debug trace (plugin "worstplayer.amxx"version "unknown")
L 01/31/2018 00:00:18: [AMXXRun time error 4index out of bounds 
L 01
/31/2018 00:00:18: [AMXX]    [0worstplayer.sma::FindWorstPlayer (line 83)
L 01/31/2018 00:00:18: [AMXX]    [1worstplayer.sma::OnRoundEnd (line 16
Line 83 looks like that:
PHP Code:
 if( ( g_iKillsiTempID ] < g_iKillsiWorstPlayer ] ) ) 
Line 16 looks like that:
PHP Code:
new iWorstPlayerId FindWorstPlayer( ); 
You do realize you tested edon version and not mine.

https://forums.alliedmods.net/showpo...06&postcount=5

This is my code.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 01-31-2018 at 05:41.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-01-2018 , 04:13   Re: [REQ] Worst round player
Reply With Quote #24

Quote:
Originally Posted by jonatat View Post
Really strange. I dont get worst round player message, and in console i getting error:

PHP Code:
L 01/31/2018 00:00:18: [AMXXDisplaying debug trace (plugin "worstplayer.amxx"version "unknown")
L 01/31/2018 00:00:18: [AMXXRun time error 4index out of bounds 
L 01
/31/2018 00:00:18: [AMXX]    [0worstplayer.sma::FindWorstPlayer (line 83)
L 01/31/2018 00:00:18: [AMXX]    [1worstplayer.sma::OnRoundEnd (line 16
Line 83 looks like that:
PHP Code:
 if( ( g_iKillsiTempID ] < g_iKillsiWorstPlayer ] ) ) 
Line 16 looks like that:
PHP Code:
new iWorstPlayerId FindWorstPlayer( ); 
Fixed, that happened because you were testing alone.
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-01-2018 , 04:50   Re: [REQ] Worst round player
Reply With Quote #25

PHP Code:
FindWorstPlayer() 

        new 
players[32], pnumChosen
        
get_players(playerspnum"h"); 
        
Chosen players[0];
        for(new 
iPlayerFragspnumi++) 
        { 
                  
Player players[i]; 
                  
Frags g_iKills[Player]; 

                 if(
Frags g_iKills[Chosen]) 
                 { 
                           
Chosen Player
                  } 
         } 
         return 
Chosen

Edon this is the proper way to get the lowest fragger

Your code is nonsense
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-01-2018 at 04:54.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-01-2018 , 05:36   Re: [REQ] Worst round player
Reply With Quote #26

Quote:
Originally Posted by Natsheh View Post
PHP Code:
FindWorstPlayer() 

        new 
players[32], pnumChosen
        
get_players(playerspnum"h"); 
        
Chosen players[0];
        for(new 
iPlayerFragspnumi++) 
        { 
                  
Player players[i]; 
                  
Frags g_iKills[Player]; 

                 if(
Frags g_iKills[Chosen]) 
                 { 
                           
Chosen Player
                  } 
         } 
         return 
Chosen

Edon this is the proper way to get the lowest fragger

Your code is nonsense
Oh? Test your code and we'll see what no-sense is.
__________________
edon1337 is offline
ish12321
Veteran Member
Join Date: May 2016
Old 02-01-2018 , 05:37   Re: [REQ] Worst round player
Reply With Quote #27

What if two have same frags :-/
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 02-01-2018 at 05:37.
ish12321 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-01-2018 , 05:40   Re: [REQ] Worst round player
Reply With Quote #28

Quote:
Originally Posted by ish12321 View Post
What if two have same frags :-/
I'm aware of that, I'll add support for that later
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-01-2018 , 08:31   Re: [REQ] Worst round player
Reply With Quote #29

Quote:
Originally Posted by edon1337 View Post
Oh? Test your code and we'll see what no-sense is.
I dont need to test it im pretty sure it works without any bugs unlike yours is full of bugs..
And the one i gave you is fully optimized.

@ish1231 i already add one using ratio k/d check the 1st page, and if there two have the same lowest ratio one of them will be chosen.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-01-2018 at 08:38.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-01-2018 , 13:23   Re: [REQ] Worst round player
Reply With Quote #30

Quote:
Originally Posted by Natsheh View Post
I dont need to test it im pretty sure it works without any bugs unlike yours is full of bugs..
And the one i gave you is fully optimized.
Full of bugs? What's this bs you're talking about? What's the logic behind your code? Test both and don't throw shade at others.
__________________
edon1337 is offline
Reply



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 08:13.


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