noch weiter oben muss noch zusätzlich
PHP-Code:
$udata = mysql_fetch_assoc( mysql_query("SELECT kontostand, bonuslose FROM ".$db_prefix."_kontodaten WHERE uid='$usrid' and passwort = '".$_SESSION['passwort']."' LIMIT 1"));
rein.
Dann habe ich das so jetzt reingenommen und es werden Bonuslose abgezogen.
PHP-Code:
# KONTOBUCHUNG SPIELEINSATZ ABZIEHEN
if( $usrkonto < $pool && $usrbonus < $pool ){ $nopool = 1; }
elseif( $usrbonus >= $pool ){ db_query ("UPDATE ".$db_prefix."_kontodaten SET bonuslose = bonuslose - '".$pool."' WHERE uid = '".$usrid."'"); }
else{
# VMS BUCHUNGEN BITTE ENTSPRECHEND ANPASSEN
# DA DIESE JA NACH ADDONS ABWEICHEN KÖNNEN
kontobuchung ('-',$pool,$usrid);
blablabla..........
}
jetzt werde ich mal testen ob das richtig so ist :-))
Edit:
es muss aber wohl noch eine zusätzliche Zeile rein, da die Bonuslose ja so nicht auf "null" gehen.
hat noch jemand eine Idee ?