I checked your store.php and you don't even have the lottery code in it.
You forget the most important step in the instruction file:
PHP Code:
**********************************
Open file: root/store.php
**********************************
--------
Find(on the end of the file):
--------
?>
--------
Add BEFORE it:
--------
// ###################### Start Lottery #######################
if ($action=="lottery") {
$lott = $DB_site->query_first("SELECT * FROM store WHERE action='lottery'");
$storeid=$lott[id];
$cost=$lott[costs];
$need=$points - $cost;
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
if ($reet=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='2' AND userid='$bbuserinfo[userid]'")) {
eval("standarderror(\"".gettemplate('store_lottery_error')."\");");
} else {
eval("dooutput(\"".gettemplate("store_lottery")."\");");
}
}
// ###################### Start Lottery Update #######################
if ($action=="lotteryupdate") {
if ($reet=$DB_site->query_first("SELECT * FROM storelottery WHERE lotnumber='2' AND userid='$bbuserinfo[userid]'")) {
eval("standarderror(\"".gettemplate('store_lottery_error')."\");");
}
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='lottery'");
$checkcost=$contest[costs];
if ($checkcost != $cost) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
if ($checkcost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
$addlot = $DB_site->query("INSERT INTO storelottery (id,lotnumber,lotname,jackpot,startdate,enddate,userid,username) VALUES (NULL,'2','0','0','0','0','$bbuserinfo[userid]','".addslashes($bbuserinfo[username])."')");
$changeusernow = $DB_site->query("UPDATE user SET storep=storep-$cost WHERE userid='$bbuserinfo[userid]'");
$changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE id=$storeid");
$updatelottery = $DB_site->query("UPDATE storelottery SET jackpot=jackpot+$cost WHERE lotnumber='1'");
$storequant = $DB_site->query_first("SELECT * FROM store WHERE action='lottery'");
if ($storequant[quantity]=='0') {
$ilove++++++s="";
} elseif ($storequant[quantity]=='1') {
$closequan = $DB_site->query("UPDATE store SET quantity='0', ok='N' WHERE id=$storeid");
} else {
$updatequan = $DB_site->query("UPDATE store SET quantity=quantity-1 WHERE id=$storeid");
}
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid='$bbuserinfo[userid]'");
$money = $moneycheck[storep];
eval("dooutput(\"".gettemplate("store_lottery_updated")."\");");
}
**********************************
Save file: root/store.php
**********************************
You have the action code "lotteryupdate" in it but u don't have the action code "lottery" in it.