
POG1
Members-
Posts
1,419 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by POG1
-
Re: MCcodes Needs Protection how can people have "legal" copies as such when there is no copyright protection...
-
Re: right side mainmenu you suck! but to get a right hand side menu you would have to go into all files and change die() into echo() exit;
-
Re: Ranking System idea $rank = int and is incremented with ++ also $ir[rank] is int... it was rank_array that wasn't a integer.. read it properly
-
Re: Ranking System idea a bit plain still and i dunno if its the best way to be done but here is what i got now and it works <?php function gameRank() { global $ir,$userid,$c; $rank=0; $net=1000; while($ir[level] >=5) { $rank++; $ir[level]=$ir[level]-5; } while($ir[networth] > 1200) { $rank++; $net=$net*$ir[networth]/2; $ir[networth]=$ir[networth]-$net; } if($rank != $ir[rank]) { $query = "UPDATE users SET rank = ".$rank." WHERE userid = ".$userid; mysql_query($query) or die(mysql_error()); } } ?>
-
Re: Ranking System idea it compares the $rank variable not $rank_array, im not verry good with arrays so it probly wont work anyway lol But look at how your query is: $query = "UPDATE users SET rank = ".$rank_array." WHERE userid = ".$userid; Number one, you're attempting to store the rank as #3 or whatever my rank would be, so the next time you run the script, your comparison fails. Believe it or not, I'm 110% certain of that fact. Even worse is the fact that your intentions of storing the #5 in the database table will not work in the first place and will throw a mysql error. You would know this if you had added to this line: mysql_query($query) or echo mysql_error(); but the rank field wouldn't be a integer so it would store the value #
-
Re: Ranking System idea it compares the $rank variable not $rank_array, im not verry good with arrays so it probly wont work anyway lol i was thinking of taking the array out and just putting tan array on the output,i dunno if it would work... $ir[rank] = array('1'=>'#1 noob','2'=>'#2 ...','3'=>'#3','4'=>'#4','5'=>'#5','6'=>'#6','7'=>'#7');
-
im not to sure hot to create a ranking system but this is what im thinking of... <? function game_rank($ir) { $rank=0; if($ir[level] =< 5) { $rank++; } if($ir[level] =< 10) { $rank++; } if($ir[level] =< 15) { $rank++; } if($ir[level] =< 20) { $rank++; } if($ir[level] =< 25) { $rank++; } if($ir[level] =< 30) { $rank++; } if($ir[networth] =< 500) { $rank++; } $rank_array = array('#1', '#2', '#3', '#4','#5', '#6', '#7'); if($rank != $ir[rank]) { $query = "UPDATE users SET rank = ".$rank_array." WHERE userid = ".$userid; mysql_query($query); } ?> any help?
-
Suggestions (post them here please for further updates)
POG1 replied to topmorpg's topic in Other Game Engines
Re: Suggestions (post them here please for further updates) i can suggest only 1 thing, take the frames away. makes the whole game look weird.. -
www.streetmafia.co.uk Any feedback?
-
sumin simple... find this. its like line 104, in bottom.php <tr> <td height="24" align="center" bgcolor="#2A0D07">-</td> </tr> </table></td> </tr> After it add <tr> <td colspan="3" class="sub" style="padding-left:7px; padding-top:10px; padding-right:7px; padding-bottom:10px; background:url(img/ftr.jpg) repeat-x #200a05;"> <?php $friends_list = explode("-", $friends); $sql = "SELECT name,donated FROM login WHERE DATE_SUB(NOW(),INTERVAL 30 MINUTE) <= lastactive ORDER BY id ASC"; $query = mysql_query($sql) or die(mysql_error()); $count = mysql_num_rows($query); $i = 1; while($row = mysql_fetch_object($query)) { $online_name = htmlspecialchars($row->name); $online_donated = htmlspecialchars($row->donated); $class = "normal_online"; if($online_donated == 2){ $class = "silver_online"; } if($online_donated == 3){ $class = "gold_online"; } if($online_donated == 4){ $class = "platinum_online"; } if (in_array($online_name, $friends_list)) {$class = "friend_online";} if (in_array($online_name, $admin_array)) {$class = "admin_online";} if (in_array($online_name, $manager_array)) {$class = "mod_online";} if (in_array($online_name, $hdo_array)) {$class = "hdo_online";} echo "<a href=\"view_profile.php?name=". $online_name ."\" onFocus=\"if(this.blur)this.blur()\"><span class = ".$class.">".$online_name."</span></a>"; if($i != $count) { echo "<label> - </label>"; } $i++; } ?> </td> </tr> nothing special, just shows everybody online
-
Re: [REVIEW] MercenaryLords - Please review!!! unix? lol
-
Re: crimes with 0 exp the formula that works out the exp given is dependent on the money gained and the variable is a integer so if its lower than 1 it will be 0
-
for the mail send function in my mailbox i want to use the string replace function and for the 2 arrays to select from a database and I'm stuck as for how to do it. This is what i have now. $a=mysql_query("SELECT `from` FROM `replace`"); $from=mysql_fetch_array($a); $b=mysql_query("SELECT `to` FROM `replace`"); $to=mysql_fetch_array($b); $newmail = str_replace($from, $to, $msg);
-
'QUERY ERROR: Duplicate entry '100' for key 2' Help please
POG1 replied to HarryB's topic in General Discussion
Re: 'QUERY ERROR: Duplicate entry '100' for key 2' Help please you need to set the primary key field to auto incremntial -
Re: Frustrated with Gang Banner Add $_POST['vp']=str_replace(array("<", ">", "\n","\'"), array("<", ">", " ","'"), $_POST['vp']); that makes no sence, why would a url have a in it lol
-
Re: battlearena you should go back 2 school
-
Re: Mass Mail error i could fix it but that would defeat the object of creating a game...
-
Re: Main Menu he wants someone 2 do it for him...
-
Re: Free Updated Newspaper I was going to call you silly then - for leaving the game name at the top and on browser tab... But when i googled - 2,500,000 results ;) So your pretty clever :lol: on the first page so an old post... having a site high up in the search engines is a good idea and having it hidden is bad ha
-
Re: [$5]Gang Status more like, look through your huge list of our stolen mods and post it with some minor changes...
-
Re: Generate Password if you know anythin about the mail function u would realise what a tit u are now so they will be able to hack into someones email adress read their mails and find the mail contaning the password? all that in the mail logs??? this is what im on about... dunno if this exact code will work but its a 30 second example $password=rand(100000, 999999); $name=$_POST[name]; $to=$_POST[email]; $subject="Password"; $message="Thanks for joining.. \r\n ||Username: " . $name . "\r\n ||password: " . $password . " \r\n $headers = "From: [email][email protected][/email] \r\n Reply-To: [email][email protected][/email]' \r\n mail($to, $subject, $message, $headers);
-
Re: Generate Password if you know anythin about the mail function u would realise what a tit u are now
-
Re: Setting up games he didnt mention mccodes... allthough he is most probly on about it lol
-
Re: No crime XP change the money given...
-
Re: Help with Marriage Pro Mod V2 by Oxi check the feilds in the database... it may now put it in and therefore u cant see it.