Jump to content
MakeWebGames

Deadmafia

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by Deadmafia

  1. Re: [v2] Secured Bank How is it secured mate ? What was wrong with last one ?
  2. Re: [V1 && V2]Change Username Color sql for this ? i tried it out but cannot change the color.
  3. Re: [MC Code v2] Saved Events for some reason on saved events the event will not show .
  4. Re: GRPG Thanks BadGirl i rated you light Up :-) So i can convert my mccodes mods into grpg ?
  5. Re: GRPG I said that was my opinion, everyone is entitled to their own opinion however i did see a survey the other day where the majority of the people votd grpg as the better script.
  6. Hi, my apoligies if this is the wrong thread. This was brought up once that GRPG scripts are not really cared for as much as mccocdes. I personally think that grpg script is the best however i am no coder (yet) but im learning. If there is anyone out there with GRPG mods then id be very greatful if you coud post them, or maybe post some help i could really do with some, Thansk for readin and i appreciate the help i have already received.
  7. Re: Rating Modification Help ... Same problem...   Error! Invaild Command.
  8. Re: Rating Modification Help ... Yeah thats the one i am using. And .. Now .. I click the "+" to rate the user up and it now says: "Invalid Command"
  9. Re: Rating Modification Help ... Ive tried all you guys said and the problem still stands the 0 stays and does not go up or down :S Anyoen got a new mod then for this ? Ive ran all the SQL's and done all correctly. just a missing line i belive.
  10. Re: Rating Modification Help ... still getting same error :S
  11. Re: Rating Modification Help ... Just tried that code and now i get this ...   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
  12. Re: Rating Modification Help ... Ok i wil try that now, To put the box you use   CODES HERE[***/code] - REMOVE THE STARS
  13. Im having a problem in my Rating Mod in which when you rate a user up the number does not go up. For example. The users rating is "0" and if you rate them up it says You haver gievn the user a good rating , however i go back to their profile and their rating is still 0. Can Anyone help me ? Am i missing something ? And the mod is: rating.php <?php include "globals.php"; $ID = (int) ($_GET['ID']); $action = $_GET['action']; $ar=$db->query("SELECT * FROM usrate WHERE rater={$userid} AND rated={$ID}"); if($db->fetch_row($ar)) { echo 'You Already Rated This Person Today'; $h->endpage(); exit; } switch($action) { case 'goodrating': goodrating(); break; case 'badrating': badrating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function goodrating() { global $ir,$userid; $ID = $_GET['ID']; if($ID == $userid) { echo 'You cannot rate yourself.'; $h->endpage(); exit; } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_row($result)) { $ratings = $row['ratings']; } mysql_query("UPDATE users SET goodratings = {$gratings}+1 WHERE userid='{$ID}'"); mysql_query("INSERT INTO usrate values ({$userid},{$ID})"); echo 'You gave the user a good rating'; } } function badrating() { global $ir,$userid; $ID = $_GET['ID']; if($ID == $userid) { echo 'You cannot rate yourself.'; $h->endpage(); exit; } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_row($result)) { $ratings = $row['ratings']; } mysql_query("UPDATE users SET badratings = {$bratings}+1 WHERE userid='{$ID}'"); mysql_query("INSERT INTO usrate values ({$userid},{$ID})"); echo 'You gave the user a bad rating'; } } $h->endpage(); ?>
×
×
  • Create New...