You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			40 lines
		
	
	
		
			614 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			40 lines
		
	
	
		
			614 B
		
	
	
	
		
			PHP
		
	
| <?php
 | |
| /*
 | |
|  *
 | |
|  * @copyright (c) 2009 animegame.eu
 | |
|  * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
 | |
|  *
 | |
|  */
 | |
| ?>
 | |
| 
 | |
| <?php
 | |
| define("CLANKAMPF", 2);
 | |
| 
 | |
| function getCharAttackSet($char_id, $type) {
 | |
| 	$qry = null;
 | |
| 	$set = array();
 | |
| 
 | |
| 	if(is_numeric($char_id)) {
 | |
| 		$test = 'SELECT Attack_ID,Round FROM attackenset WHERE Char_ID = '.$char_id.' AND Type = '.$type;
 | |
| 		$qry = mysql_query($test);
 | |
| 	}
 | |
| 
 | |
| 	$i = 0;
 | |
| 	while ($result = mysql_fetch_assoc($qry)) {
 | |
| 		$set[$result['round']] = $result['attack_id'];
 | |
| 	}
 | |
| 
 | |
| 	return $set;
 | |
| }
 | |
| 
 | |
| function updateCharAttackSet($set) {
 | |
| 
 | |
| }
 | |
| 
 | |
| function createCharAttackSet() {
 | |
| 
 | |
| }
 | |
| 
 | |
| 
 | |
| ?>
 |