Сайта е много хубав 10/10
Ще го ползвам в бъдеще
Но ще сложа Credits: Mepgisto, LiskO, eXTenTioN, eXecuteR
Въпреки ,че правя промени по дизайна
Welcome to ElvenMu Normal
Fatal error: Cannot redeclare class Config in C:\xampp\php\PEAR\Config.php on line 44
Знам, че не съм никой да ти казвам какво да правиш, но поне скрий грешката
error_reporting(0);
replaceerror_reporting(E_ALL ^E_NOTICE ^E_WARNING);
error_reporting(0);
Е ако кажеж как ще я скирия ... от уеб сайтове не разбирам много, повече омения имам във сървър файловете
Има някакъв странен бъг... Както си 400 левел и си Онлайн може да реснеш, и ставаш отново 400 левел и така праиш за секунди ресове ...
function reset_character()
{
global $resetmoney;
global $resettype;
global $resetpoints;
global $maxresets;
global $resetlevel;
$character = secure($_POST['character']);
$account = secure($_POST['user']);
$account = secure($_POST['user']);
$account = secure($_SESSION['user']);
Хората с които съм работил знаят какви са ми възможностите и не е нужно да се мъча да втълпявам неща, на които други не вярват )
[/CENTER]
Template GravityMU on XPA:
Download: MEGAUPLOAD - The leading online storage and file delivery service
Credits:
FCV2005 -> Design.
FallenOne (Dr.House) -> Adapted+PSD.
забравил съм как мога да го оправя,помня ,че нещо се едитваше в includes/Xproject.class.phpCharacter **** does not have enough points !
не мога да си вдигна statsa,как мога да го оправя (ver: 97d+99i)
забравил съм как мога да го оправя,помня ,че нещо се едитваше в includes/Xproject.class.php
function add_stats()
{
global $maxstats;
$character = secure($_POST['character']);
$account = secure($_SESSION['user']);
$password = secure($_POST['password']);
$strength = secure($_POST['strength']);
$agility = secure($_POST['agility']);
$vitality = secure($_POST['vitality']);
$energy = secure($_POST['energy']);
$command = secure($_POST['command']);
$stats = $strength + $agility + $vitality + $energy + $command;
check_inject();
$query = mssql_query("Select class,LevelUpPoint,Strength,Dexterity,Vitality,Energy,LeaderShip From Character where name='$character'");
$row = mssql_fetch_row($query);
$strengthold = fix_stats($row[2]);
$agilityold = fix_stats($row[3]);
$vitalityold = fix_stats($row[4]);
$energyold = fix_stats($row[5]);
$commandold = fix_stats($row[6]);
$strengthnew = $strengthold + $strength;
$agilitynew = $agilityold + $agility;
$vitalitynew = $vitalityold + $vitality;
$energynew = $energyold + $energy;
$commandnew = $commandold + $command;
$newleveluppoints = $row[1] - $stats;
$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$onlinecheck = mssql_num_rows($queryonline);
$querychar = mssql_query("Select * from Character where Name='$character'");
$charcheck = mssql_num_rows($querychar);
if($charcheck <= 0) { echo"<font color='red'>Your Character does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
else
{
if($stats > $row[1]) { echo"<font color='red'>Character $character does not have enough points !</font><br>"; $error=1; }
elseif($strengthnew > $maxstats or $agilitynew > $maxstats or $vitalitynew > $maxstats or $energynew > $maxstats or $commandnew > $maxstats) { echo"<font color='red'>You can't add more than $maxstats stats</font><br>"; $error=1;}
if($onlinecheck >= 1) { echo"<font color='red'>Account $account is online!Please LogOff First!</font><br>"; $error=1;}
if($error != 1)
{
echo"<td align='center' class='modules'><span class='online'>Points succesfully added.$character now have:</font><br>$strengthnew Strength , $agilitynew Agility , $vitalitynew Vitality , $energynew Energy , $commandnew Command and $newleveluppoints points left to add!</span></td></tr>";
$a = mssql_query("Update Character set LevelUpPoint='$newleveluppoints',Strength='$strengthnew',Dexterity='$agilitynew',Vitality='$vitalitynew',Energy='$energynew',LeaderShip='$commandnew' where name='$character'");
}
}
}
function add_stats()
{
global $maxstats;
$character = secure($_POST['character']);
$account = secure($_SESSION['user']);
$password = secure($_POST['password']);
$strength = secure($_POST['strength']);
$agility = secure($_POST['agility']);
$vitality = secure($_POST['vitality']);
$energy = secure($_POST['energy']);
$stats = $strength + $agility + $vitality + $energy;
check_inject();
$query = mssql_query("Select class,LevelUpPoint,Strength,Dexterity,Vitality,Energy From Character where name='$character'");
$row = mssql_fetch_row($query);
$strengthold = fix_stats($row[2]);
$agilityold = fix_stats($row[3]);
$vitalityold = fix_stats($row[4]);
$energyold = fix_stats($row[5]);
$strengthnew = $strengthold + $strength;
$agilitynew = $agilityold + $agility;
$vitalitynew = $vitalityold + $vitality;
$energynew = $energyold + $energy;
$newleveluppoints = $row[1] - $stats;
$queryonline = mssql_query("Select * from MEMB_STAT where memb___id='$account' and connectstat='1'");
$onlinecheck = mssql_num_rows($queryonline);
$querychar = mssql_query("Select * from Character where Name='$character'");
$charcheck = mssql_num_rows($querychar);
if($charcheck <= 0) { echo"<font color='red'>Your Character does not exist in our database. Please go back and try again!</font><br>"; $error=1; }
else
{
if($stats > $row[1]) { echo"<font color='red'>Character $character does not have enough points !</font><br>"; $error=1; }
elseif($strengthnew > $maxstats or $agilitynew > $maxstats or $vitalitynew > $maxstats or $energynew > $maxstats) { echo"<font color='red'>You can't add more than $maxstats stats</font><br>"; $error=1;}
if($onlinecheck >= 1) { echo"<font color='red'>Account $account is online!Please LogOff First!</font><br>"; $error=1;}
if($error != 1)
{
echo"<td align='center' class='modules'><span class='online'>Points succesfully added.$character now have:</font><br>$strengthnew Strength , $agilitynew Agility , $vitalitynew Vitality , $energynew Energy and $newleveluppoints points left to add!</span></td></tr>";
$a = mssql_query("Update Character set LevelUpPoint='$newleveluppoints',Strength='$strengthnew',Dexterity='$agilitynew',Vitality='$vitalitynew',Energy='$energynew' where name='$character'");
}
}
}