<?php Aseco::registerEvent('onPlayerConnect', 'PComing'); $buttonmainposition = '-50 -30 1'; function PComing($aseco, $player){ // hits********************************************************************** //make file at first time************************************************** $log = 'hits.txt'; } $myFile = "hits.txt"; $hits=$hits+1; //save hits******************************* $log = 'hits.txt'; //*******TOTAL PLAYERS**************************** $xml = '<manialink id="081547000012233"> <format style="TextCardInfoSmall" textsize="1" /> <frame posn="'.$buttonmainposition.'"> //TOTAL players**************************************************************** <label posn="55 -31.8 1" sizen="5 2" halign="center" valign="center" text="$i$s$f00'.$hits.'" action="1270085103"/> <label posn="55 -29.8 1" sizen="5 2" halign="center" valign="center" text="$i$s$f00Visitor counter" action="1270085103"/> </frame> </manialink>'; } ?>
problem jest taki ze jak czyta z pliku, kiedy naliczy juz 10 i jest +1 to czyta chyba tylko ta 1 z przodu zamiast 10 i nastepne daje dwa.
moglby ktos pomoc?
z gory dziekuje