Hi all,
Im trying to get more handy with the fread etc stuff to manage the scriptdata files.
In Callback_StartGameType()
Then in the endMap()Code:level.mostkills =0;
and i made bestplayers.txt in scriptdata/stats and inside this fileCode:f=openfile("stats/bestplayers.txt","read"); if(f !=-1) { freadln(f); level.mostkills = int(fgetarg(f,0)); iprintlnbold("Most kills: "+level.mostkills); closefile(f); }
But it keeps returning level.mostkills = 0Code:10