Hi i'm trying to make a higher/lower-game for a channel, and want to keep track of the scores...but i havent found out how to replace a line in a file...
i want to put the nick who guessed the corerct number in a file, or if it exists, just replace the line (and increase the number on it)..
got everything else covered...just this little part left...plz help
-zleppy-
Working with files had been discussed before a lot of times, even there is an example how to add, remove and replace an certain line from an text file, do an forum search. Also, I belive it will be a lot easier if you store the results in arrays and save them every 5 minutes or whatever to a file as backup. This also had been discussed before with examples and parts of code ofcource.
Once the game is over, the king and the pawn go back in the same box.
thanks...i found a script that works...but now i have the problem that i cant figure out how to check if the array is existing...like...
a new user gets a point..ok... set $score($nick) 1
but what about a old user...how do i add 1 up to the existing value?