06.02.2011, 01:48
Oh, that's even easier than what I thought you were saying.
Basically you could have a separate array holding the streaks for the players of that round. Once done, compare it to the streak you loaded from the file. If it's larger (>) than the one in the file, open the file & save it.
I haven't used dini lately so I can't give you an example in dini.
End of round
for each player
compare their new killing streak to the one in the file if(mydata[playerid][streak] > roundstreak[playerid])
IF it's higher than the one in the file overwrite it and save it to the file
ELSE move on to the next player
If you still need help I'll make a quick example.
Basically you could have a separate array holding the streaks for the players of that round. Once done, compare it to the streak you loaded from the file. If it's larger (>) than the one in the file, open the file & save it.
I haven't used dini lately so I can't give you an example in dini.
End of round
for each player
compare their new killing streak to the one in the file if(mydata[playerid][streak] > roundstreak[playerid])
IF it's higher than the one in the file overwrite it and save it to the file
ELSE move on to the next player
If you still need help I'll make a quick example.

