Raised This Month: $ Target: $400
 0% 

FindBestPlayer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-28-2013 , 13:32   FindBestPlayer
Reply With Quote #1

How can i transfer
Code:
bestplayer
into event_roundstart()
?

Code:
public event_RoundStart() {     findBestPlayer()     get_user_name(bestplayer, BestName, 63) } findBestPlayer() {     new players[32], numplayers, id, bestplayer, Float:q, Float:tempq     get_players( players, numplayers, "a" )       if( numplayers <= 1 )     {         return players[0]     }     bestplayer = players[0]     q = float(get_user_frags(bestplayer )) / (float(get_user_deaths(bestplayer )) + 0.000001)     for(new i = 1; i < numplayers; i++ )     {         id = players[i]                 tempq = float(get_user_frags(id)) / (float(get_user_deaths(id)) + 0.000001)                 if( tempq > q)         {             q = tempq             bestplayer = id         }         }         return bestplayer }
It gives me undefined symbol :/
Podarok is offline
 


Thread Tools
Display Modes

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 10:52.


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