Verfasst: 10.06.2006 21:05
weiß dazu niemand eine Lösung?silva07 hat geschrieben:Ein paar User haben verpennt den Weltmeister zu tippen... in welcher Tabelle in phpmyadmin kann ich den einfügen?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
weiß dazu niemand eine Lösung?silva07 hat geschrieben:Ein paar User haben verpennt den Weltmeister zu tippen... in welcher Tabelle in phpmyadmin kann ich den einfügen?
lesen hilft weiter !silva07 hat geschrieben:weiß dazu niemand eine Lösung?silva07 hat geschrieben:Ein paar User haben verpennt den Weltmeister zu tippen... in welcher Tabelle in phpmyadmin kann ich den einfügen?
Code: Alles auswählen
if ( $tipp_home == $result_home && $tipp_away == $result_away ) {
$tipp_new_points = $wm_config['points_match'];
}
else if ( $tipp_home - $tipp_away == $result_home - $result_away ) {
}
else if ( ($tipp_home > $tipp_away && $result_home > $result_away) || ($tipp_home < $tipp_away && $result_home < $result_away) ) {
$tipp_new_points = $wm_config['points_tendency'];
}
}
else {
if ( $tipp_home == $result_home ) {
$tipp_new_points = $wm_config['points_winner'];
}
}
Code: Alles auswählen
if ( $tipp_home == $result_home && $tipp_away == $result_away ) {
$tipp_new_points = $wm_config['points_match'];
}
else if ( $tipp_home - $tipp_away == $result_home - $result_away ) {
if ( ($tipp_home > $tipp_away && $result_home > $result_away) || ($tipp_home < $tipp_away && $result_home < $result_away) || ($tipp_home == $tipp_away && $result_home == $result_away)) {
$tipp_new_points = $wm_config['points_tendency'];
}
else {
$tipp_new_points = $wm_config['points_tordiff'];
}
}
else if ( ($tipp_home > $tipp_away && $result_home > $result_away) || ($tipp_home < $tipp_away && $result_home < $result_away) || ($tipp_home == $tipp_away && $result_home == $result_away)) {
$tipp_new_points = $wm_config['points_tendency'];
}
}
else {
if ( $tipp_home == $result_home ) {
$tipp_new_points = $wm_config['points_winner'];
}
}
I had to change the game_time to summertime to show the correct starttimes of the games. But I noticed that I still could change my 'tipps' when a game already had begun. So it turns out my host did not set the servertime very well, there is a 12 minute difference.buegelfalte hat geschrieben:soweit so gut, aber das WM-Skript vergleicht game_time (aus DB) mit time() (Serverzeit = GMT+1), um festzustellen, ob das Spiel schon begonnen hat und da ist dann eine Stunde Unterschied drin.
Diese Abfrage prüft, ob das Spiel schon begonnen hat:
if ( $game_time < time() )
Code: Alles auswählen
if ( $game_time < time() - 720)
achtung, zwecks "unentschieden tendenz habe ich meinen code nochmal aktualisiert!Highjacker hat geschrieben:Klingt gut!
Teste das mal!
Habe Dif. und Ten. jeweils mit 1pkt. versehen.
Wie kann ich jetzt die "verlorenen Punkt" für die User dazu addieren?