raffle

Post bugs or suggestions to the game here. Or discuss development topics.
Post Reply
User avatar
Slasher
The FAF Forums SMEGHEAD!!! lol
Posts: 2635
Joined: Mon May 03, 2004 5:08 pm
Location: http://florida4us.com/
Contact:

Post by Slasher »

buy 5 cash tickets and the option to buy food tickets disappears, i can still do it if i go back via my browser, but this needs fixing
I do not have a signature, you must be imagining

http://florida4us.com/

Image
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

Will look into it.

code: Select all

if (mysql_num_rows($tickets[$jtyp]) >= $maxtickets)
  TheEnd("You can't buy any more $jtyp tickets!");
        if ($users[$jtyp] < $tickcost[$jtyp])
  TheEnd("You don't have enough for a ticket!");
	else {
  $ticknum = $num_all_tickets+1;
  $jackpot[$jtyp] += $tickcost[$jtyp];
  sqlQuotes($jtyp);
  fixInputNum($tickcost[$jtyp]);
  fixInputNum($jackpot[$jtyp]);
  mysql_safe_query("INSERT INTO $lotterydb (num,ticket,amt,jtyp) VALUES ($users[num],$ticknum,$tickcost[$jtyp],'$jtyp');");
  mysql_safe_query("UPDATE $lotterydb SET amt=$jackpot[$jtyp] WHERE num=0 AND ticket=$tick_curjp AND jtyp='$jtyp';");
  $users[$jtyp] -= $tickcost[$jtyp];
  saveUserData($users,"networth food cash");
Looks like if you have 5 entries into the DB, then it stops you. Config is set to 5 for max tickets. So that's probably the problem.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members