'.$ds[name].'';
}
return $squads;
}
function getgamesquads() {
$ergebnis=safe_query("SELECT * FROM ".PREFIX."squads WHERE gamesquad='1'");
while($ds=mysql_fetch_array($ergebnis)) {
if($squads==$ds[squadID]) $squads.='';
else $squads.='';
}
return $squads;
}
function getsquadname($squadID) {
$ds=mysql_fetch_array(safe_query("SELECT name FROM ".PREFIX."squads WHERE squadID='$squadID'"));
return $ds[name];
}
function issquadmember($userID, $squadID) {
$anz=mysql_num_rows(safe_query("SELECT sqmID FROM ".PREFIX."squads_members WHERE userID='$userID' AND squadID='$squadID'"));
return $anz;
}
function isgamesquad($squadID) {
$anz=mysql_num_rows(safe_query("SELECT squadID FROM ".PREFIX."squads WHERE squadID='".$squadID."' AND gamesquad='1'"));
return $anz;
}
?>