31.01.2014, 16:30
I have tried so many things that I do not still had other one that to ask for help...
I need to know how to do in order that a function returns her ID of the player with more points.
I did this:
And it does not work, is more, I do not even see the logic to this function .
Might someone say to me how to do it?
Regards.
I need to know how to do in order that a function returns her ID of the player with more points.
I did this:
pawn Код:
stock SearchPlayerWhitHighPoints()
{
new Value = -1;
new player = -1;
new Float:Var;
foreach(new i: Player)
{
Var = PlayerInfo[i][RadarSpeed]; // The points it would be 'PlayerInfo[i][RadarSpeed]'.
if(Var > Value)
{
player = i;
}
}
return player;
}
And it does not work, is more, I do not even see the logic to this function .
Might someone say to me how to do it?
Regards.