Comparing values of variable
Ok so you lets say you have a variable named Player_totalkills[id].
There are four people in the server, each with a value present in their Player_totalkills[index]. How would you compare those four index's to see who's has the biggest number, then call a function to award whoever has the biggest. |
Re: Comparing values of variable
Code:
Notice this only works if there are one with the highest kills. If two players has the same and highest score, the second one would be ignored. EDIT: Another, better way. Code:
|
Re: Comparing values of variable
koo.. ty, i'll give that a go. plus karma
|
| All times are GMT -4. The time now is 00:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.