Ако на някой му се занимава ще може ли да ми направи такава Warnned таблица
която да работи за Админ панела на Damian . Мерси предварително
<?
require"config.php";
$query = "Select Name,Class,cLevel,resets,MapNumber,AccountID,strength,dexterity,vitality,energy,PKcount from Character where ctlcode ='1' order by resets desc ,clevel desc";
$result = mssql_query($query);
echo "<TABLE border=0 width=500 height=30 cellPadding=2 cellSpacing=2>
<br><br></br><span class='normal_text'><center><b>???????????? ??????</b></center></span>
<table width=400 height=10 border=1 bordercolor=333333 cellpadding=0 cellspacing=1 >
<tr>
<td align=left><font color=#666666><center>ID</center></font></td>
<td align=left><font color=#666666><center>Name</center></font></td>
<td align=left><font color=#666666><center>Warning</center></font></td>
<td align=left><font color=#666666><center>Reason</center></font></td>
<td align=left><font color=#666666><center>Warned by</center></font></td>
</tr>";
$predupreden=mssql_query("select Name from warnings");
for($i=0;$i<mssql_num_rows($predupreden);++$i){
$row=mssql_fetch_row($predupreden);
$row1=mssql_fetch_row(mssql_query("select Name,warning,reason1,reason2,reason3,who1,who2,who3 from warnings where name='$row[0]'"));
$nr=$i+1;
if($row1[1] != 1 and 2 and 3){$warning = "0%";}
if($row1[1] == 1){
$warning = "33%";
$reason="<left><font color=#FFFFFF>1. $row1[2]</font></left>";
$who="<left><font color=#FFFFFF>1. $row1[5]</font></left>";
}
if($row1[1] == 2){
$warning = "66%";
$reason="<left><font color=#FFFFFF>1. $row1[2]</font></left><br><left><font color=#FFFFFF>2. $row1[3]</font></left>";
$who="<left><font color=#FFFFFF>1. $row1[5]</font></left><br><left><font color=#FFFFFF>2. $row1[6]</font></left>";
}
if($row1[1] == 3){
$warning = "100%";
$reason="<left><font color=#FFFFFF>1. $row1[2]</font></left><br><left><font color=#FFFFFF>2. $row1[3]</font></left><br><left><font color=#FFFFFF>3. $row1[4]</font></left>";
$who="<left><font color=#FFFFFF>1. $row1[5]</font></left><br><left><font color=#FFFFFF>2. $row1[6]</font></left><br><left><font color=#FFFFFF>3. $row1[7]</font></left>";
}
echo"<tr>
<td align=left><font size=1 color=#666666><b><center>$nr</center></b></font></td>
<td align=left><font size=1 color=#FFFFFF><b><center>$row[0]</center></b></font></td>
<td align=left><font size=1 color=#ed1c24><b><center>$warning</center></b></font></td>
<td align=left><font size=1 color=#FFFFFF><b><center>$reason</center></b></font></td>
<td align=left><font size=1 color=#FFFFFF><b><center>$who</center></b></font></td>
</tr>
";
}
echo"<table><tr><td><br></tr></td></table>";
?>
Това е защото ти липсват таблици в MuOnline датабазата. Отвори файла който съдържа кода за предупреждения и виж кои таблици липсват. Или си забравил да добавиш query ако имаш такъв.[/QUOTE
ето това ми е таблицата:
<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('warned');
}
?>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<?
require("config.php");
$query = "Select Name,Class,cLevel,resets,MapNumber,AccountID,strength,dexterity,vitality,energy,PKcount from Character where ctlcode ='1' order by resets desc ,clevel desc";
$result = mssql_query($query);
echo '<TABLE border=0 width=500 cellPadding=2 cellSpacing=2>
<br><span class="normal_text"><b>Предупредени играчи</b></span><br>
<td><span><b><font color=red face="Verdana" size=3 style="font-size: 10pt">Всяко нарушение води до 33% предупреждение. При 100% предупреждение играчът получава бан за 7 дни.</font></b></span></td>
<br>
<table id="mutable" class="alt5" height=30 border="1" bordercolor="333333" cellpadding="0" cellspacing="1" >
<tr>
<td align=left><font color=#666666><center>ID</center></font></td>
<td align=left><font color=#666666 title="Name Of Character"><center>Име</center></font></td>
<td align=left><font color=#666666><center>Предупреждение</center></font></td>
<td align=left><font color=#666666><center>Причина за предупреждение</center></font></td>
<td align=left><font color=#666666><center>Предупреден от</center></font></td>
</tr>';
$predupreden=mssql_query("select Name from warnings");
for($i=0;$i<mssql_num_rows($predupreden);++$i){
$row=mssql_fetch_row($predupreden);
$row1=mssql_fetch_row(mssql_query("select Name,warning,reason1,reason2,reason3,who1,who2,who3 from warnings where name='$row[0]'"));
$nr=$i+1;
if($row1[1] != 1 and 2 and 3){$warning = "0%";}
if($row1[1] == 1){
$warning = "33%";
$reason="<p><left><font size=2 color=green><b>1. $row1[2]</b></font></left>";
$who="<p><left><font size=2 color=green><b>1. $row1[5]</b></font></left>";
}
if($row1[1] == 2){
$warning = "66%";
$reason="<p><left><font size=2 color=green><b>1. $row1[2]</b></font></left><p><left><font size=1 color=green><b>2. $row1[3]</b></font></left>";
$who="<p><left><font size=2 color=green><b>1. $row1[5]</b></font></left><p><left><font size=1 color=green><b>2. $row1[6]</b></font></left>";
}
if($row1[1] == 3){
$warning = "100%";
$reason="<p><left><font size=2 color=green><b>1. $row1[2]</b></font></left><p><left><font size=1 color=green><b>2. $row1[3]</b></font></left><p><left><font size=1 color=green><b>3. $row1[4]</b></font></left></b>";
$who="<p><left><font size=2 color=green><b>1. $row1[5]</b></font></left><p><left><font size=1 color=green><b>2. $row1[6]</b></font></left><p><left><font size=1 color=green><b>3. $row1[7]</b></font></left></b>";
}
echo "<tr>
<td align=left><font size=1 color=green><b><center>$nr</center></b></font></td>
<td align=left><center><a href=index.php?op=banned><b><font size=1 color=green>$row[0]</center></b></font></a></div></td>
<td align=left><font size=1 color=green><b><center>$warning</center></b></td>
<td align=left>$reason</td>
<td align=left>$who</td>
</tr>
";
}
?>
</table>
</td>
</tr>
</table>
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[warnings]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[warnings]
CREATE TABLE [dbo].[warnings] (
[name] [char] (10) COLLATE Chinese_PRC_CI_AS NULL ,
[warning] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[reason1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[reason2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[reason3] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[who1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[who2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[who3] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY]
Ползвай товаCode:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[warnings]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[warnings] CREATE TABLE [dbo].[warnings] ( [name] [char] (10) COLLATE Chinese_PRC_CI_AS NULL , [warning] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [reason1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [reason2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [reason3] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [who1] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [who2] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [who3] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ) ON [PRIMARY]