Save highest Killstreak?
#8

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.
Reply


Messages In This Thread
Save highest Killstreak? - by BlackWolf120 - 04.02.2011, 21:59
Re: Save highest Killstreak? - by BlackWolf120 - 05.02.2011, 15:57
Re: Save highest Killstreak? - by BlackWolf120 - 05.02.2011, 21:20
Re: Save highest Killstreak? - by alpha500delta - 05.02.2011, 21:34
Re: Save highest Killstreak? - by BlackWolf120 - 06.02.2011, 00:35
Re: Save highest Killstreak? - by iFriSki - 06.02.2011, 00:40
Re: Save highest Killstreak? - by BlackWolf120 - 06.02.2011, 01:36
Re: Save highest Killstreak? - by iFriSki - 06.02.2011, 01:48
Re: Save highest Killstreak? - by BlackWolf120 - 06.02.2011, 02:00
Re: Save highest Killstreak? - by On_Top_Non_Stop - 06.02.2011, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)