Posts: 33
Threads: 7
Joined: Nov 2009
how to check variable is maximum
ex.
for(new i; i=0; i++)
{
if(dmscore[i] is maximum)
{
getplayername(i,name)
SendClientMessagetoall(Winner Is name)
Posts: 3,793
Threads: 196
Joined: Jan 2010
Reputation:
0
Sorry i didnt really get that, can u please be moar clear, thx.
Posts: 33
Threads: 7
Joined: Nov 2009
1st score
2nd score
3nd score please
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
That would be more complicated, but not necessarily hard. I gave you a base code, so build off of it - You will be required to use your personal knowledge here.
You will need to make so the highscore variable is an array, of three slots. Then check if the score of the current player id is above any of them. If the first, move down the other two, second, move down the last, etc. It's all more if statements and math.
Posts: 33
Threads: 7
Joined: Nov 2009