-
Posts
1,183 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by reportingsjr
-
-
Doh! I messed up . So thats why it was moving. I forgot to remove the {}else from all of them. Checking it now!EDIT: No , it still doesnt work! What do you think is going wrong here? I would love for this to work!!FULL CURRENT CODE:
if($_POST['way'] =="up"){ //GO UP if(!($position->y <= 0 || ($position->x >= 48 && $position->x <= 168 && $position->y >= 502))){ $database->query("UPDATE `map` SET y = y-2 WHERE name = '{$_POST['username']}'"); }}elseif($_POST['way'] =="down"){ //GO DOWN if(!($position->y >= 594 || ($position->x >= 48 && $position->x <= 168 && $position->y <= 320))){ $database->query("UPDATE `map` SET y = y+2 WHERE name = '{$_POST['username']}'"); }}elseif($_POST['way'] =="left"){ //GO LEFT if(!($position->x <= 0 || ($position->x <= 168 && $position->y >= 502 && $position->y <= 320))){ $database->query("UPDATE `map` SET x = x-2 WHERE name = '{$_POST['username']}'"); }}else{ //GO RIGHT if(!($position->x >= 594 || ($position->x >= 48 && $position->y >= 502 && $position->y <= 320))){ $database->query("UPDATE `map` SET x = x+2 WHERE name = '{$_POST['username']}'"); }}
-
I see someone got on it! Well, it works. Sort of , I have this: but I tried to move down and it wouldnt move down! Here is my whole code so far:
if($_POST['way'] =="up"){ //GO UP if(!($position->y <= 0 || ($position->x >= 48 && $position->x <= 168 && $position->y >= 502))){}else{ $database->query("UPDATE `map` SET y = y-2 WHERE name = '{$_POST['username']}'"); }}elseif($_POST['way'] =="down"){ //GO DOWN if(!($position->y >= 594 || ($position->x >= 48 && $position->x <= 168 && $position->y <= 320))){}else{ $database->query("UPDATE `map` SET y = y+2 WHERE name = '{$_POST['username']}'"); }}elseif($_POST['way'] =="left"){ //GO LEFT if(!($position->x <= 0 || ($position->x <= 168 && $position->y >= 502 && $position->y <= 320))){}else{ $database->query("UPDATE `map` SET x = x-2 WHERE name = '{$_POST['username']}'"); }}else{ //GO RIGHT if(!($position->x >= 594 || ($position->x >= 48 && $position->y >= 502 && $position->y <= 320))){ $database->query("UPDATE `map` SET x = x+2 WHERE name = '{$_POST['username']}'"); }}
-
I hope that works! Well, I do have a test account that you can see it in. go to http://excibius.com and login as "blehe" with a password of "blehe". Then on the right menu when you log in click the big red link that says "NEW 2D MAP". The on the right there are arrows you can use to move around. It supposed to make it so you cant move around the lake, or off the right edge of the page. Thanks! I will test when I get home!
-
Do you actually know all of those languages? If not tough luck, no one here is going to give you that much code!
-
-
-
The th tag is another option instead of td, it just makes all text inside the th bold. I have no clue what area you are talking about, what do it say inside to the table column?
-
Haha! But what about monsoons? You get oodles of rain then! (can I just cal you steve? I dont feel like typing in justsomeguy!) Warn level, I dont like that thing.. Im at 20% =\ 10% for being mean and another 10% for having "want to be a mod behavior". Which I dont remember getting contacted about or anything, I just saw it .
-
Ok, so right now im making a game. So im turning it into a 2d game. I have moving around set. But there are areas I dont want people to go to. I tried to figure it out but it wouldnt work! Here is my code:
//GO RIGHT if($position->x >= 594 && ($position->x >= 48 && $position->x <= 168 && $position->y >= 502)){}else{ $database->query("UPDATE `map` SET x = x+2 WHERE name = '{$_POST['username']}'"); }
you wont be able to see it because you need to be logged in and I dont think anyone here wants to register etc.. So $position->x is the left right distance and $position->y is the up down value. What do I have to put so it wont allow you to move into a square of any size?
-
Little explosion things? You mean freaking huge mongous explosion things?ohhh ahh! http://antwrp.gsfc.nasa.gov/apod/ap061127.html
-
Well, if you are using PHP it will be alot easier to read and write cookies, but you can with javascript. Just takes a it more code!
-
Whats with all the whitespace? That could be an issue with the define()s. When using $_POST or any of those I wouldn't recommend using double quotes, just single quotes .
-
I have a question regarding .htaccess, I tried to edit mine so php could be parsed through .html. But instead it just forced a download. What did I do wrong! I had it like you posted Jonas but with more such as .php and .htm. It would be nice to figure it out.
-
I say its at least 4.99999999999999999999999 billion years old. At least thats just what I think.
-
Umm, you will need a form. Have it have a dollar amount, then a <select> with things like USD to UK Pounds and UK Pounds to USD. Google currency converter and check their code, just borrow snippets!
-
-
Looks much better! Keep up the work!!
-
-
Yes, anywhere you want to use sessions at the top of the page you MUST have session_start();
-
I dont think too deep. Maybe deep enough to require a 14 foot ladder. But anyways, we need Kaijim he cause he IS the one who has the final word..
-
Welcome feck!Hope you figure out how to get back on your hotmail account .
-
It probably is the colon instead of a semicolon. I have had includes and requires act weird some times, like I couldn't include a url to the whole site, just files. maybe thats just my site!
-
Well of course there wont be 99 mods! But there is a need for a few more. I mean, 3 or 4 more mods would be nice for the forum. It would put a lot less work on the current mods (how many are there? 3, or 4?). So no one is saying get 10 or 15 mods right now, just double the amount right now.
-
Email Address Standards
in General
Posted