Jump to content
MakeWebGames

Ikz786

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Ikz786

  1. Wait no its not fixed -.- this only shows who I'm married to, so if I go on someone else's profile, it will only show who I am married to not who they are married to :/ I checked it on my own profile and it seemed to work but I realised it was a mistake when I went on someone else's profile and saw it said the person I am married to, on their profile. Now, I tried contacting the person I purchased the mod off and he said it should work fine even after asking him many times that it doesn't work. Still need help :(
  2. Both of the above didn't work, they came up as single or not married when I was married, but I managed to fix it myself, thanks for trying.
  3. I purchased a marriage mod and I want the name of the person I'm married to, to show up on my profile. I've followed the instructions given with the mod but I can't figure it out where the problem is.   $m = $db->fetch_row($db->query(sprintf("SELECT u.userid, u.username, u.money, u.crystals, u.bankmoney, u.cybermoney, u.maxwill, u.marriedwill, us.*, h.hNAME, h.hWILL FROM users AS u LEFT JOIN userstats AS us ON u.userid=us.userid LEFT JOIN houses AS h ON u.maxwill=h.hWILL WHERE u.userid=%u", $r['married'])));   That is the code which fetches the information from the database, but when it comes to printing that information it comes up as "Married to: []" when it should be "Married to: User [1]" for example. The code to print this is: <b>Married To: </b>"; if($ir['married'] > 0) { print"<a href='viewuser.php?u={$m['userid']}'>{$m['username']} [{$m['userid']}]</a>"; } else { print"Nobody"; }   Can somebody help me please as I don't know what the problem is.
  4. I'm guessing it is somewhere in here:   $q=mysql_query("SELECT * FROM cars_tracks ORDER BY rand() LIMIT 1", $c); $t=mysql_fetch_array($q); $stats_y=0; $stats_y+=$m['cpcACCLV']*$m['carACC']*$t['ctrkACC']; $stats_y+=$m['cpcHANLV']*$m['carHAN']*$t['ctrkHAN']; $stats_y+=$m['cpcSPDLV']*$m['carSPD']*$t['ctrkSPD']; $stats_y+=$m['cpcSHDLV']*$m['carSHD']*$t['ctrkSHD']; $stats_o=0; $stats_o+=$r['cpcACCLV']*$r['carACC']*$t['ctrkACC']; $stats_o+=$r['cpcHANLV']*$r['carHAN']*$t['ctrkHAN']; $stats_o+=$r['cpcSPDLV']*$r['carSPD']*$t['ctrkSPD']; $stats_o+=$r['cpcSHDLV']*$r['carSHD']*$t['ctrkSHD']; $stats_y*=rand(800,1200); $stats_o*=rand(800,1200); $notes="No-one won anything"; mysql_query("UPDATE users SET cars_challs_accpt=cars_challs_accpt+1 WHERE userid=$userid", $c); if($stats_y > $stats_o) { $winner=$ir['username']; $winnings=$bet*2; mysql_query("UPDATE users SET money=money+$winnings, cars_races_income=cars_races_income+$bet,cars_races_won=cars_races_won+1 WHERE userid={$r['chCHD']}", $c); mysql_query("UPDATE users SET cars_races_income=cars_races_income-$bet,cars_races_lost=cars_races_lost+1 WHERE userid={$r['chCHR']}", $c); if($bet > 0) { $notes="{$r['challenged']} won \$$winnings"; } if($r['chTYPE'] == "High-Stakes") { mysql_query("UPDATE cars_playercars SET cpcPLAYER=$userid WHERE cpcID={$r['cpcID']}", $c); $notes="{$r['challenged']} won {$r['challenger']}\'s {$r['carNAME']}"; mysql_query("UPDATE users SET cars_lost=cars_lost+1 WHERE userid={$r['chCHR']}", $c); mysql_query("UPDATE users SET cars_won=cars_won+1,cars_owned=cars_owned+1 WHERE userid={$r['chCHD']}", $c); } else if($r['chTYPE'] == "Betted") { mysql_query("UPDATE users SET cars_races_betted=cars_races_betted+1 WHERE userid IN ({$r['chCHR']}, {$r['chCHD']})", $c); } else { mysql_query("UPDATE users SET cars_races_friendly=cars_races_friendly+1 WHERE userid IN ({$r['chCHR']}, {$r['chCHD']})", $c); } } else { $winner=$r['challenger']; $winnings=$bet*2;   also, after the first $winner=$ir['username'], I changed the $ir['username'] to $r['challenged'] but it didn't make a difference.
  5. Thanks, I've fixed the tune page now, but when the players race each other the challenger always wins, any way I can fix that?
  6. Hi, I am having problems with the tune.php page for the cars mod. I saw another thread on this forum and added the function below:   function power($num1, $num2) { return pow($num1, $num2); } session_start();   which made a table come up showing all the parts of the car I can tune, but now I can't set the cost of the items that need tuning and I can't change how much I want them to tune. [ATTACH=CONFIG]808[/ATTACH] In the screenshot it shows the cost and the amount to tune as '0', I need help changing that. Can somebody help me please?
  7. Will this work with VBulletin?
×
×
  • Create New...