Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Energy problem it would all depend on how you made it go to 150 but if you done it how i think and i would have you would have added somethign to the users table like 150bar and if the 150 = 1 then there energy is 150% and if the 150 = 0 then there energy is 100% if its that then put in your day cron   mysql_query("UPDATE users SET 150bar = 0 WHERE donatordays < 1");   If you didnt do it that way....please explain how you did and i will gladly help... Of course the 150bar is an example if you did it that way you probarly called it something else if so just change the 150bar to whatever you called it.. Hope this helps :mrgreen:
  2. Re: Cron alternative? if your host is mad about the one minute cron get rid of it... change your hospital and jail times to multibles of 5 using an array and then use the 5 min cron to lower there times by 5 min...
  3. Re: crystal market post your query...in the buy function
  4. Re: added effects not working. any ides what i am missing here You need to edit your itemuse.php also :-P
  5. Re: MCC V1 Jail Problem im not very familiar with v1 but this looks odd u.prison maybe it should be u.jail? so it would be   $q = mysql_query("SELECT u.*,c.* FROM users us LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC", $c); if(mysql_num_rows($q) == 0) {
  6. Re: mysql neeeeeeeeeed help plz pro's I'm with them...put in that field localhost its 99% of the time what you need there
  7. Re: Multi IP Prevention precautions like this is to Prevent you from needing 2 dozen staff members... bascially this If you ahve a lot of staff members. Your game will fail... No question about it...Someone will cheat or mess with players. Plain and simple. So you don't want a lot of staff emebers thats why people add stuff like this... Staff is NOT just to set online and check multis LMFAO
  8. Re: right side mainmenu LMAO.............I bet you just confussed the crap out of him
  9. Re: Clocking the speed of a page load. Yeah i have tried that code as well... I have came to the conclusion there is No way to include it in the globals.php and the endpage function... This is what makes it show a hugh number Every code words perfect when I use just that code. For example.. I made 2 pages..... speedstart.php $time_start = microtime(true);   and speedstop.php usleep(100); $time_end=microtime(true); $time=$time_end-$time_start; echo "This page came about in $time.";   Now I just include these 2 pages and it will work..Will take more time to put in but this works :)
  10. Re: Clocking the speed of a page load. Ok i will give this a try and post back. Thanks for your Help also :mrgreen: EDIT: That didn't work...I guess its not acting right cause its going through the other code or somethign.... I didnt try the htaccess file though cause im not sure what you mean by that.. and that warning after is scarey, lol Make sure i remember its there, lol
  11. Ok...I done this on a test game...that im developing..and the time is all wrong...lol.... Let me break it down its on mccode v2 Everypage includes the globals.php. So I figured I would start it there..and put the end on the endpage function which is in everpage...I done this so I would not thave to put it on everypage... This could be why its doing it not sure..but figured Iwould ask here cause there are some good coders here. this is the code I'm using now..Also I ahve used 2 different ones but same result.. Start code I put in my globals. Which is included on everypage at the top with: include "globals.php";   $start = explode(" ", microtime()); $start = $start[1] + $start[0];   Now I put this code in the endpage function in the header.php But it is located at the bottom of everypage with: $h->endpage();   $end = explode(" ", microtime()); $end =$end[1] + $end[0]; $totaltime = ($end - $start); printf("This page took %f seconds to load.",$totaltiem);   I did not write this code. I got it from www.corecoding.com So credit for that code goes to them..I say that so no one thinks im trying to take credit for this, lol... But any ideas why that code would give this result: This page took 1211880297.858522 seconds to load. It didnt take that long, lol...but thats the result.   EDIT: Here is an update...I have made 2 new pages...startspeed.php and endspeed.php.. If i include them at the top and bottom it works right.... But that would be alot of doing to get that on everypage...anyone have an idea of a faster way that would include in another page already included..Like the ones said already..I have concluded though putting it in a function like that is what gave me that error.
  12. Re: error bug help :p Do you mean if they ahve 0 money they can still do it? IF so try this..   if($_GET['action' == '1day' && $ir['money'] > 199) { $db->query("UPDATE users SET money = money-200, haha = haha+1, lol = 24 WHERE userid = ".$ir['userid']." "); echo ' <h1>********************</h1>'; $h->endpage(); exit; } else { echo 'You do not have the funds'; $h->endpage(); exit; }   Or you can go this way to... at the top of page....add this so if there money is Not greater than 200 they can not even view the page.   if($ir['money'] < 200) { echo 'Leave you broke bum....'; $h->endpage(); exit; }   If I mis understood the error you need to explain a little better :)
  13. Re: Need help with creating a php/mysql powered page. Its not free support you want.. Its free Work.....Good luck finding that....Why do people want someone to code something for them...And they dont want to pay for it....You do realize the code don't just appear on the comuter.. We USE OUR TIME to make stuff like this.. Why the HELL shouldnt you get paid for it? DO YOU go to work and say hey you know what I'm going to work for free today..... well hell no.........
  14. Re: Free 2 - Gym No problem Nyna just giving credit where it is due. :-D
  15. Re: This arrray work? THANK YOU NYNA :-D :-D :-D 8-) :lol: :mrgreen: :lol: 8-) :-D That is exactly what im looking for
  16. I don't want to say exactly what this is for...but here it is.....its a project im working on was wondering if this would work.....   $time = rand(1,5); $random = array('1' , '2' , '3' , '4' , '5'); $newtime = array('5' , '10' , '15', '20, '25'); $newtimes = str_replace($random, $newtime); $query = sprintf('UPDATE `users` SET `something` = ("%u")' , $newtime); mysql_query($query) or die (mysql_error());   What I am trying to do is make it udate the users "something" to a random number but only in the array like in example the array 5, 10, 15, 20, 25... To try to explain better....I want it to run a random nubmer 1,2,3,4,5 <<< those random numbers. Then i want it to replace those numbers (1,2,3,4,5,) with these numbers 5,10,15,20,25... Then I want it to update the users "something" with the replaced number.....^^^^^^^ EDIT: Or maybe this one? $time = rand(1,5); $newtime = str_replace(array('1' , '2' , '3' , '4' , '5'), array('5', '10', '15, '20', '25'); $query = sprintf('UPDATE `users` SET `something` = ("%u")' , $newtime); mysql_query($query) or die (mysql_error());   What I am trying to get to is a random number of only increment of 5 (between 5-25)
  17. Re: Free 2 - Gym Richard what you need to do is give thanks to Nyna for this NOT DBS....... Taka out that bull crap   /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/   Maybe you should put this /* ** Thanks Nyna We love it. ** Glad you made it. ** Cause we could not :) ** FULL CREDIT TO NYNA */
  18. Re: Here is a hard one for you Sorry for the double post but want to make sure people see it.. Ok I have an idea....Can someoen show me how to make a queyr for this to run ONLY ONCE like a LIMIT of some type this might do it what do you think? $db->query("INSERT INTO forum_posts VALUES('', {$i}, {$r['ff_id']}, $userid, '$u', unix_timestamp(), '{$_POST['ft_desc']}', '$newforumtopic', 0, '', 0, 0) ") or die(mysql_error()); You know and add at the end LIMIT 1 i have tried but got nothing but erros.... or maybe change to a sprinf? have not tried that but dont think it matters though...     Got it fixed.....dont know how it worked but it did.... i changed   print "[b]Topic Posted![/b]<hr /> "; $_GET['viewtopic']=$i; viewtopic();   To:   $_GET['viewtopic']=$i; print "[b]Topic Posted![/b] [url='newforums.php?viewtopic=$i']> Back[/url]";   I decided to try this cause i was thinking maybe firefox was looping the code 2 times...so i figured if i changed that part it would work...So if you ever have this problem there ya go :mrgreen: So with that said...the problem was this   viewtopic();
  19. Re: Here is a hard one for you Its on one post.... say i start a topic called Test and i put in ther blah blah I hit Post and it does it twice....its not the person posting to fast or refreshing or back button....
  20. Re: Here is a hard one for you I might have misunderstood but the subject its validated. THe one you see blank...thats the problem. The one that is filled it right is what i typed in.....But like i said i might have misunderstood...
  21. Re: Here is a hard one for you Lol, I don't have much choice on Fire fox for my main box is Linux... but here is the break down of the table above that it might help understand the values... <form action='newforums.php?act=newtopic&forum={$_GET['forum']}' method='post'> <table width='80%' border='1'> <tr> <td align=right>Topic Name:</td> <td align=left><input type='text' name='ft_name' value='' /></td> </tr> <tr> <td align=right>Topic Description:</td> <td align=left><input type='text' name='ft_desc' value='' /></td> </tr> <tr> <td align=right>Topic Text:</td> <td align=left><textarea rows='8' cols='45' name='fp_text'></textarea></td> </tr> <tr> <th colspan=2><input type='submit' value='Post Topic' /></th> </tr> </table></form> Posting that i just noticed i didn't clode the form....i forgot a </form> I will try this real quick... EDIT: Nope not it...i place it in the code now also...still does the same thing. Also here is a picture of what its doing..... See how it has 2 post that was from me posting one time......I posted teh testing topic and it gave me both...Now in IE i is not doing that. It works right..........that is what has me so confussed.
  22. OK....Let me try to explain this.... To start I have used it in Firefox 2 and Firefox 3.....On Windows and On Linux...... (was hoping it was a bug in firefox 3 to start or a bug in linux firefox but nope) What my problem is i made a forum. Now when you post a topic with Internet Explorer. It works right...... When you do the Exact same thing with fire fox.....no matter the version or OS....It post your topic and post a blank topic...So its like it is double posting but the double post is blank...which regardless the double post is bad, lol.. My querys I'm running is this...   $newforumtopic = str_replace($codes, $images, $_POST['fp_text']); $newforumpost=str_replace(array("\n"),array(" "),strip_tags($_POST['fp_text'])); $subject=str_replace(array("\n"),array(" "),strip_tags($_POST['fp_subject'])); $db->query("INSERT INTO forum_topics VALUES('', {$_GET['forum']}, '{$_POST['ft_name']}', '{$_POST['ft_desc']}', 0, $userid, '$u', unix_timestamp(), 0, '', 0, 0, 0)"); $i=$db->insert_id(); $db->query("INSERT INTO forum_posts VALUES('', {$i}, {$r['ff_id']}, $userid, '$u', unix_timestamp(), '{$_POST['ft_desc']}', '$newforumtopic', 0, '', 0, 0) ") or die(mysql_error()); $db->query("UPDATE forum_topics SET ft_last_id=$userid, ft_last_name='$u', ft_last_time=unix_timestamp(), ft_posts=ft_posts+1 WHERE ft_id={$i}"); $db->query("UPDATE forum_forums SET ff_lp_time=unix_timestamp(), ff_posts=ff_posts+1, ff_topics=ff_topics+1, ff_lp_poster_id=$userid, ff_lp_poster_name='$u', ff_lp_t_id={$i}, ff_lp_t_name='{$_POST['ft_name']}' WHERE ff_id={$r['ff_id']}"); $db->query("UPDATE users SET posts=posts+1 WHERE userid=$userid"); $db->query("UPDATE users SET fcredits=fcredits+5 WHERE userid=$userid"); print "[b]Topic Posted![/b]<hr /> "; $_GET['viewtopic']=$i; viewtopic(); }   That is the querys for posting a topic. I have never ran into this problem before.....is there something wrong with the querys??? Please help....You help is very very very appreciated.
  23. Re: wtf tables are f d up actually a space in front of <?php would make a difference. lol
  24. Re: [mccode] Supporter Packs I was pointing your in the right direction thats all not giving you the exact answer... I dont recommend NOR not recomend... I know something along that lines will work. Cause I have it in my game..An have had it in my game Long before this big rave on it, lol. Maybe someone saw it on my game??? And no i wont give it to you took to much work...my time is not free on something like this.... And Sorry I don't sell my codes......... ANd I know this post has no meaning really, lol...just letting them know that if they learn to code some what they have seen in this topic they can make it work. But if you can NOT code. .....STOP TRYING TO OWN A GAME!!!!!!!!!!!!!!!!!! Its that simple. I wont play a game owned by a 14 year old that can not code the thing.....And defently wont give money to him...Also i knwo there are some that have been doing it since they was that age. but come on seriously.........
  25. Re: [mccode] Supporter Packs try this   if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; }   if($ir['donatordays'] && $ir['supporterdays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; }   That might not be exact but should put you on the right track.
×
×
  • Create New...