Jump to content

Brian77

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Brian77's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Adding that to the zone.php file works, slightly, but it doesn't actually refresh the page to the new area without pressing F5 or refresh.
  2. I really don't know where to ask this question, I even tried over at where they make this game and they never answered...so here it goes. I play an RPG game on my fourm. There is 4 directions one may travel on the main zone.php page. Upon clicking where they want to go, they are taken to a page that tells them that it was successful and click here to return to the previous page. I would like them to only click ONCE the direction they want to go, and basically refreshing the zone.php file, and being in the new area they chose. How can I accomplish this? It would save clicking, and it would also save me bandwidth because that whole page isn't coming up anymore. This is at the end of one direction that is in my zone.php page. //Update character zone $sql = " UPDATE  " . RPG_CHARACTERS_TABLE . " SET character_area = '$destination_id' WHERE character_id = '$user_id' "; if( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not update character zone', '', __LINE__, __FILE__, $sql); rpg_previous( Rpg_zone_change_success , rpg_zones , '' ); break; I have already tried removing the rpg_previous( Rpg_zone_change_success , rpg_zones , '' ); line of text from all points, and it worked, but it didn't refresh the page. Ex: I was in Area 1, clicked North to Area 2, and it brought back my zone.php page....but I was STILL in Area 1, but according to my DB, I really was in Area 2, and hitting F5 would change it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.