Jump to content
MakeWebGames

Joel

Members
  • Posts

    1,169
  • Joined

  • Last visited

Everything posted by Joel

  1. Re: Ranks Mod!!!! Here you go people, I just toke out useless data   <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("<font color='red'>This page cannot be accessed while in jail or hospital.</font>"); } ?> <?php print " <u><h3><font color=white>Level Ranks</h3> [b]<font color=white>Welcome To Level Ranks here you will see your ranks and what they will become as you level up, to become a different rank when you reach the certain level ask a staff member to change your rank.</h2> <table border='1' width'90%' bordercolor='#939393'><th>Rank</th><th>Name</th><th>Level</th></tr><tr> <td><center><a href='.php'>[img=rank1.png]</td><td><center>Private</td><td><center>1</td></tr><tr> <td><center><a href='.php'>[img=rank2.png]</td><td><center>Corporal</td><td><center>100</td></tr><tr> <td><center><a href='.php'>[img=rank3.png]</td><td><center>Sergeant</td><td><center>125</td></tr><tr> <td><center><a href='.php'>[img=rank4.png]</td><td><center>Sergeant Major</td><td><center>150</td></tr><tr> <td><center><a href='.php'>[img=rank5.png]</td><td><center>Second Lieutenant<td><center>175</td></tr><tr> <td><center><a href='.php'>[img=rank6.png]</td><td><center>First Lieutenant<td><center>200</td></tr><tr> <td><center><a href='.php'>[img=rank7.png]</td><td><center>Captain<td><center>225</td></tr><tr> <td><center><a href='.php'>[img=rank8.png]</td><td><center>Major<td><center>250</td></tr><tr> <td><center><a href='.php'>[img=rank9.png]</td><td><center>Lieutenant Colonel<td><center>275</td></tr><tr> <td><center><a href='.php'>[img=rank10.png]</td><td><center>Colonel<td><center>300</td></tr><tr> <td><center><a href='.php'>[img=rank11.png]</td><td><center>Brigadier General<td><center>325</td></tr><tr> <td><center><a href='.php'>[img=rank12.png]</td><td><center>Major General<td><center>350</td></tr><tr> <td><center><a href='.php'>[img=rank13.png]</td><td><center>Lieutenant General<td><center>375</td></tr><tr> <td><center><a href='.php'>[img=rank14.png]</td><td><center>General<td><center>400</td></tr><tr> <td><center><a href='.php'>[img=rank15.png]</td><td><center>General of the Army<td><center>500</td></tr><tr> <td><center><a href='.php'>[img=rank16.png]</td><td><center>General of the Armies<td><center>750</td></tr><tr> <td><center><a href='.php'>[img=rank17.png]</td><td><center>General Of Wars<td><center>1000</td></tr><tr></table>"; $h->endpage(); ?>
  2. Joel

    How to....

    Re: How to....   I remember trying out something like that, Well I used mysql_fetch_array instead, Ill give it a mess around see if I get somewhere, Thanks Iso. I no its pretty basic, I like to take things slow.
  3. Joel

    How to....

    Re: How to.... Thanks Zeon but I have already read threw those sites, I'm not really hopeing to get anywhere fast, I like to go slow, But while I create the engine I will learn new things, This is probaly the only thing im going to have trouble with, Creating mods is simple and other features ect, But I will go over my engine to secure it (when I have finally know how to secure). Thanks anyway.
  4. Joel

    How to....

    OK, This may be a noob question but I'm having trouble, Its the only trouble I'm having, I'm creating my own game engine and what am having trouble is getting stuff from Mysql database, Say that I want my username and the other users usernames to show on a page, ect: Name: Extermination [1] what would I have to do, I've tried many things, I have got a Login page, Register Page, and a Main Menu page, I want it to show on the Main Menu page, the login and register work fine, I just need help doing this, I want it to get the Username from the SQL Database on to my main menu page, Hope you understand what I mean, I dont know everything to do with mysql and php, So any help would be nice, Thanks
  5. Re: learning mysql_real_escape_string just need to verify. Doesn't matter, I've figured something out.
  6. Re: learning mysql_real_escape_string just need to verify.   How the hell are you going to write your own game engine if you don't know such a thing? it's more or less securing your inputs. Yeah well I'm not that good securing my game, I've never tried securing any of my mods/games, I just think I know how to use mysql_real_escape_string, And I don't I really need to "no" that to create my own game, I've already started it and done the login page, register page and main page.
  7. Re: learning mysql_real_escape_string just need to verify. Hmm, I'm getting to understand the mysql_real_escape_string, I've started on a Game Engine and just need to know bits and bobs, Would I need to protect this?...   $result = mysql_query("SELECT * FROM settings"); while($row = mysql_fetch_array($result)) { echo $row['game_name']; echo " "; }   What would be the code if you can protect this, I've tried different things.... But not working
  8. Re: [sHOWCASE] Criminal Force - Free online MMORPG: Police Force vs. Crime Force Nice game, I like it! :)
  9. Re: Count Backwards :D 4911
  10. Re: Counting (nr game) 1934
  11. Re: Counting (nr game) 1932
  12. Re: Count Backwards :D 4913
  13. Re: Count Backwards :D 4915
  14. Re: Counting (nr game) 1929
  15. Re: FIRST THOUGH! blistic
  16. Re: Simple Funtions   Oh alright sorry.
  17. Re: Simple Funtions   Thanks for your comment, and functions are easy to use if you no what to do, so yeah it will help out the "noobs" lol.
  18. Simple Funtions Hey people I will show you how to create simple functions for Mccodes instead of creating loads off files. So create a file, Name it anything, I will call mine test.php Now we would need this code in side the file:   <?php include "globals.php"; /*------------------------ Our functions will go here. ------------------------*/ $h->endpage(); ?>   Now we need to create the Cases for the functions, So let me update the code above:   <?php include "globals.php"; switch($_GET['action']) { case 'test1': test1(); break; case 'test2': test2(); break; default: index(); break; } $h->endpage(); ?>   You can have more Cases if you wish but you will need to create more functions, so now we have the Cases, we can start doing the functions, let me show you an example below off how we will do the functions:   <?php include "globals.php"; switch($_GET['action']) { case 'test1': test1(); break; case 'test2': test2(); break; default: index(); break; } function index() { global $ir,$c,$userid,$h; print "what ever you want here"; } $h->endpage(); ?>   The index will be the main page of the file. Let me show you how it works:   <?php include "globals.php"; switch($_GET['action']) { case 'test1': test1(); break; case 'test2': test2(); break; default: index(); break; } function index() { global $ir,$c,$userid,$h; print "what ever you want here"; } function test1() { global $ir,$c,$userid,$h; print "test1 success"; } function test2() { global $ir,$c,$userid,$h; print "test2 success"; } $h->endpage(); ?>   Now if you have both test1 and test2 functions in there, then go to your address bar and test them, so the URL would be like this: http://www.YOURGAME.com/FILENAME.php?action=test1 and http://www.YOURGAME.com/FILENAME.php?action=test2 And then it should say Success! Now that was simple wasn't it? Any help just say, I am happy to help!
  19. Re: login page v1   lol true!
  20. Joel

    Simple Question

    Re: Simple Question There's no point in changing it, it wont make any difference to be honest :/
  21. Joel

    Sig making 101

    Re: Sig making 101 Nice tutorial Scarlet, you are great at graphics :)
  22. Re: Attractive Advertisement Tutorial! Nice tutorial Absolute Zero :)
  23. Re: The Best Game Ever Released   I agree with you Isomerizer
  24. Re: Login & Register {V2} $20   Lol -z-e-r-o-
  25. Re: V2 cars mod Ahhh I hate people that do this, they should grow up! You cant just edit a few bits and then sell it, you wont get no where so there's no point in trying!
×
×
  • Create New...