well i'm creating a plugin which save the top 5 only scorers(soccerjam) in a txt file in this format:
PHP Code:
"Steam id" "Goals" "Assist"
any way i coded it and got it to be like this
PHP Code:
"STEAM_0:1:31287965" 0 0
"STEAM_0:1:23423345" 0 0
now the problem is how can i edit the goal amount or the assist amount.
do i need to delete this line and re-add it edited or there is a better way to do it? for example if someone score and he is one of the top 5. Automaticly update the txt where is steamid.