Page 1 of 1

WebStats BUG[SurvivalGames Plugin]

Posted: 11 Mar 2013, 21:26
by Equinox
Salutare, am nevoie de ajutor... avem un bug la webstats pentru HungerGames.
Am setat bazele de date, am dat enable la webstats, nu stiu unde sa fi gresit.
Eroare: '.number_format($result2['games']).' games have been played by '.number_format($result['tplayers']).' players who have played '.number_format($result['tplayed']).' times for a total of '; $day = round($result['ttime']/ 86400000,2); echo $day . ' days in playing time and a total of '.number_format($result['tpoints']). ' points'; ?>
Link WebStats: http://surv.minecraft-romania.com/index.php
Am nevoie de un raspuns cat mai repede posibil!
Thx.

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 13 Mar 2013, 01:15
by Equinox
Nimeni nu stie? Haideti... am nevoie de ajutor!

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 13 Mar 2013, 01:23
by Andreis
Fi mai explicit , asta e eroarea care iti apare cand intrii pe pagina? Un screen? Poate postezi si codul.

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 14 Mar 2013, 12:56
by Equinox
Da, asta este eroarea din josul paginii, intra si vei vedea. Link WebStats: http://surv.minecraft-romania.com/index.php
Codul il poti lua dand click pe 'Inspecteaza Element' daca ai GoogleChrome...

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 14 Mar 2013, 22:59
by Andreis
http://www.w3schools.com/php/func_string_echo.asp
Difference of single and double quotes. Single quotes will print the variable name, not the value:
<?php
$color = "red";
echo "Roses are $color";
echo "<br />";
echo 'Roses are $color';
?>
The output of the code above will be:
Roses are red
Roses are $color
Deci problema sunt semnele ' , vezi difererentele mai sus.
Sper ca ai inteles ce ai de facut! ;)

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 14 Mar 2013, 23:29
by Equinox
Codul nu este facut de mine,e facut de double0negative... creatorul pluginului SurvivalGames.
Voi modifica eu pe parcurs tot ce trebuie,design,cod si celelalte.Prima data sa si mearga!
P.S: Daca vrei sa dai un ajutor zi exact la ce te referi, nu uita ca acolo este un cod intreg, nu pot modifica tot in cateva minute! Mai sunt si altii, inteleg la ce te referi,dar poate unii nu... asa ca da edit si spune ca la carte!

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 18 Mar 2013, 15:57
by Mafios_X
Posteaza codul din index.php aici prin BBCODE SPOILER.

Re: WebStats BUG[SurvivalGames Plugin]

Posted: 18 Mar 2013, 22:20
by Equinox
Puteti da T/C, am rezolvat.