
Karlos
Members-
Posts
951 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Karlos
-
Re: [mccode v2] Events Page Updated. Ahhh, yes I remember your making your own engine.
-
Re: [mccode v2] Events Page Updated. include('class/Main.php'); Do you mean require_once (DIRNAME(__FILE__) . '/globals.php'); NOTE: i prefer require_once but that's not the main point :wink:
-
total noob looking for basic setup of items/options/affects manual
Karlos replied to jpoke5's topic in General Discussion
Re: total noob looking for basic setup of items/options/affects manual Now i wonder why i'm almost invisble on here... Staff being competely rude and insolent -
Re: Guess the next poster How'd you guess? :-P Zero?
-
Re: V2 Mainmenu Seriously Crazy...You need to consider your own coding first..
-
Re: [mccode V2] Search Islands Nah i ain't posting it xD haha LOL and because i dont want to post the one i done maybee somethink else i do insted! I don't know about Crazy-t i speak to him on msn all the time and he asks me about simple querys and i am only 5 months old in this my self but he boasts about how he always has something better than us like his ajax chat javascript.... and now this.... I think my chat is almost as advanced as you can get it .. If you can get better than prove it... As for this one i know That you can do better than this cause it is a simple mod and took me all of 2 mins to write it up... So i say again if you can do better prove it I'm gonna second that....I've seen a mod which he made with no security on it and it's constructed terribly....
-
Re: Guess the next poster Stop dreaming dude :-P Joel?
-
Re: MCcodes v2 Exploit Patches Well not every one...but the main known ones i believe you meant to say
-
Re: 2 images I created Well.. Ummm.. Do You Have.... Errr.... Hidden Talent? :P
-
Re: Guess the next poster Why did you both suspect me -.- Zero next?
-
[mccode] Buy A House With Level Requirements !
Karlos replied to ColdK's topic in General Discussion
Re: [mccode] Buy A House With Level Requirements ! Oh well, 1 number :wink: -
Re: [MCCodes V2] Jail/Hosp Count Zero..think...is this much difference from the users online on the menu? not really.... Thanks Mate
-
Re: Guess the next poster Hell no -.- Perv :P ArmageddonDude Next....(He better be :P)
-
[mccode] Buy A House With Level Requirements !
Karlos replied to ColdK's topic in General Discussion
Re: [mccode] Buy A House With Level Requirements ! Almost...A signed TINYINT ranges from: -128 to +127 (1 Number out :P) -
Re: [MCCodes V2] Jail/Hosp Count the main reason why i did this is because you can't run crons on wamp server just like that.
-
Well I got bored and I saw mainmenu.php it relied on 2 crons to count players in Hospital and Jail so here's a quick edit to get rid of the crons. Edit 2 PHP Files First open up mainmenu.php and find: $hc=$set['hospital_count']; $jc=$set['jail_count']; and replace with: $UJail = $db->query('SELECT COUNT(userid) AS num1 FROM `users` WHERE jail > 0'); $Jail = $db->fetch_row($UJail); $UHosp = $db->query('SELECT COUNT(userid) AS num2 FROM `users` WHERE hospital > 0'); $Hosp = $db->fetch_row($UHosp); now find your hosptial links and replace with: [url="hospital.php"]Hospital ('.$Hosp['num2'].')[/url] and again with jail links and replace with: [url="jail.php"]Jail ('.$Jail['num1'].')[/url] Save it. open up cron_minute.php find and delete the following queries: $hc=$db->num_rows($db->query("SELECT * FROM users WHERE hospital > 0")); $jc=$db->num_rows($db->query("SELECT * FROM users WHERE jail > 0")); $db->query("UPDATE settings SET conf_value='$hc' WHERE conf_name='hospital_count'"); $db->query("UPDATE settings SET conf_value='$jc' WHERE conf_name='jail_count'"); Save it.. And Your Done.
-
Re: Include or Require? Naa, I already tryed require_once (DIRNAME(__FILE__) . '\..\globals.php'); and it works fine.
-
Re: Include or Require? Actually: / = a directory itself, the top directory (absolute) ../ = parent directory (relative) ./ = current working directory (relative) Well i never needed to use these before but "up one level" didn't work when it did it in: require_once (DIRNAME(__FILE__) . '/globals.php'); and i had to make it: require_once (DIRNAME(__FILE__) . '\..\globals.php'); to get it to work :-)
-
Re: [mccodes v2] Magic 8 Ball Aren't you even going to try and secure user input?
-
Re: [mccode v2] Annoucements Upgrade! Thanks mate, but i wouldn't be where I am now if it wasn't you for hosting cursed :wink: So here's a +1 for you.. :-D
-
Re: mccode lite Try looking for v1 if not... Lite is a crappier version of V1
-
Re: Mccodes lite mods [mccode] [mccode v1] [mccode v2] The tagsto look for ;)
-
Re: Variables.. Well as I said I'm learning JavaScript for the first time so I'm not to sure on some stuff and w3schools doesn't explain it a lot in detail but thanks Floydian it helped and my final crappy out come was: (But i hoepfully will learn it better and make more and better scripts in the future.) <?php require_once (DIRNAME(__FILE__) . '/globals.php'); ?> <script type="text/javascript"> <!-- var x; x = 5; if (x == 4) { document.write("X Doesn't Equal 4"); } else { document.write("X Equals 5"); } document.write(" "); x = 11; if (x == 9) { document.write("X Doesn't Equal 9"); } else if(x == 11) { document.write("X Equals 11"); } else { document.write("X Equals A Number You Dooofus!"); } //--> </script> <?php $h->endpage(); ?>
-
Re: Variables.. Well in the end I still had no luck... So I decided to play around and work with simple arithmetic and if statements and this is what I got.. But i still would like to find the answer out if anybody can help me.. <?php require_once (DIRNAME(__FILE__) . '/globals.php'); ?> <script type="text/javascript"> <!-- var x; x = 5; if (x == 4) { document.write("X Doesn't Equal 4"); } else { document.write("X Equals 5"); } document.write(" "); var y; y = 10; if (y == 10) { document.write("Y Equals 10"); } else { document.write("Y Doesn't Equal 10"); } document.write(" "); var z; z = x + y; if (z = 15) { document.write("Z Equals 15...Simple Arithmetic"); } else { document.write("What Planet Are You On....Z Equals 15... -.-"); } document.write(" "); if (z >= 16) { document.write("Z Equals 15...Simple Arithmetic"); } else { document.write("What Planet Are You On....Z Equals 15... -.-"); } //--> </script> <?php $h->endpage(); ?>
-
Re: Variables.. I have tried many ways now and yet still no luck. Thanks for having time to try and help :wink: