Registration Page Error

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 5, 2009
Messages
15
Reaction score
0
Notice: Undefined index: data in C:\xampp\htdocs\index.php on line 461
Notice: Undefined offset: 36 in C:\xampp\htdocs\index.php on line 462
Notice: Undefined variable: def in C:\xampp\htdocs\index.php on line 466
Notice: Undefined variable: pol in C:\xampp\htdocs\index.php on line 466
Notice: Undefined index: admin in C:\xampp\htdocs\index.php on line 468
Notice: Use of undefined constant WARRIOR - assumed 'WARRIOR' in C:\xampp\htdocs\index.php on line 301
Notice: Use of undefined constant GLADIATOR - assumed 'GLADIATOR' in C:\xampp\htdocs\index.php on line 302
Notice: Use of undefined constant TEMPLAR - assumed 'TEMPLAR' in C:\xampp\htdocs\index.php on line 303
Notice: Use of undefined constant SCOUT - assumed 'SCOUT' in C:\xampp\htdocs\index.php on line 304
Notice: Use of undefined constant ASSASSIN - assumed 'ASSASSIN' in C:\xampp\htdocs\index.php on line 305

Line 301-305:
Code:
		if($player_class == WARRIOR) {$class_tree = "WARRIOR";}
		else if($player_class == GLADIATOR) {$class_tree = "WARRIOR";}
		else if($player_class == TEMPLAR) {$class_tree = "WARRIOR";}
		else if($player_class == SCOUT) {$class_tree = "SCOUT";}
		else if($player_class == ASSASSIN) {$class_tree = "SCOUT";}

Line 461-468:


Code:
		$char_data = explode(' ',$result['data']);
		$char_gender = dechex($char_data[36]);
		$char_gender = str_pad($char_gender,8, 0, STR_PAD_LEFT);
		$char_gender = $char_gender{3};
		
                $res_pol = $def['character_race'][$pol];

$pl_array[$i] = Array($result['name'], $result['race'], $result['player_class'], $result['gender'], $result['world_id'], $char_gender, $result['exp'], $result['admin']);


Can someone tell me how to solve this?
 
I would not worry about Notice errors. They are only for debugging purposes.

I'd suggest you turn error reporting off. Then you shouldn't see stuff like that.

In fact, does the page itself loads, even with the notice errors? Because it should..
 
Upvote 0
Status
Not open for further replies.
Back