- Joined
- Apr 8, 2008
- Messages
- 2,465
- Reaction score
- 11,169
alter table character add GrResets int not null default 0само топ играчи не ми излиза ранкингс a guild`s излизат вече
alter table character add GrResets int not null default 0само топ играчи не ми излиза ранкингс a guild`s излизат вече
Good evening!
I take this web, all perfect. Buts, 1 problem. In left block - Top Players - there are no 1 player, in ranking section too. But Top Guild works perfect.
How i can solve this problem?
Sorry, i'm not Bulgarian.
Emmm. I'm stupy ;-) In dbo character, i had table Reset, don't Resets. Now i change it to Resets and all good.are you sure that you have columns - Resets and GrResets if you don't get the code from the 1st page and insert it in QA
are you sure that you have table MEMB_CREDITS and column credits? and in Character - GrResets
Code:[COLOR="Red"]function dogrand_reset() { $account = secure($_SESSION['user']); global $grandresetcredits; if(isset($_POST['exchange'])) { $account = secure($_SESSION['user']); $character = secure($_POST['character']); $resets = secure($_POST['resets']); check_inject(); $querychar = mssql_query("Select resets,grresets from character where name='$character'"); $char = mssql_fetch_row($querychar); $newresets = $char[0] - $resets; $newgrresets = $char[1] + $resets; if($newresets < 0) { echo"<br><font color='red'>Not enought resets!</font><br>"; $error = 1; } elseif($resets < 0) { echo"<br><font color='red'>Error! You Can't put - numbers!</font><br>"; $error = 1; } elseif($error != 1) { $credits = $resets * $grandresetcredits; echo"<br><font color='green'>You exchange $resets reset(s) for $credits credits</font><br>"; $a = mssql_query("Update Character set resets='$newresets',GrResets='$newgrresets' where name='$character'"); $b = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account'"); } } $query = mssql_query("Select name,resets from character where AccountID='$account'"); echo" <form action='' name='' method='POST'> <select id='character' name='character'><optgroup label='Select a character'> "; for($i=0;$i < mssql_num_rows($query);++$i) { $row = mssql_fetch_row($query); echo" <option value='$row[0]'>$row[0] [$row[1]]</option> "; } echo"</select> <br><input type='text' size='25' id='resets' name='resets' /> <br><input type='submit' maxlength='2' value='exchange' name='exchange'> </form> <br>Each one sold reset is equivalent to One 'GR' in Rankings ! <br>1 Reset = $grandresetcredits Credits! "; }[/COLOR]
[COLOR="Blue"]function dogrand_reset()
{
$account = secure($_SESSION['user']);
global $grandresetcredits;
if(isset($_POST['exchange']))
{
$account = secure($_SESSION['user']);
$character = secure($_POST['character']);
$resets = secure($_POST['resets']);
check_inject();
$querychar = mssql_query("Select resets,grresets from character where name='$character'");
$char = mssql_fetch_row($querychar);
$credits_user = mssql_query("Select * from MEMB_CREDITS where memb___id='$account'");
$credits_user_check = mssql_num_rows($credits_user);
$newresets = $char[0] - $resets;
$newgrresets = $char[1] + $resets;
if($credits_user_check <= 0){ mssql_query("INSERT INTO MEMB_CREDITS (memb___id,credits) VALUES ('$account','0')"); }
if($newresets < 0) { echo"<br><font color='red'>Not enought resets!</font><br>"; $error = 1; }
elseif($resets < 0) { echo"<br><font color='red'>Error! You Can't put - numbers!</font><br>"; $error = 1; }
elseif($error != 1) {
$credits = $resets * $grandresetcredits;
echo"<br><font color='green'>You exchange $resets reset(s) for $credits credits</font><br>";
$a = mssql_query("Update Character set resets='$newresets',GrResets='$newgrresets' where name='$character'");
$b = mssql_query("Update MEMB_CREDITS set credits = credits+$credits WHERE memb___id='$account'");
}
}
$query = mssql_query("Select name,resets from character where AccountID='$account'");
echo"
<form action='' name='' method='POST'>
<select id='character' name='character'><optgroup label='Select a character'>
";
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
echo"
<option value='$row[0]'>$row[0] [$row[1]]</option>
";
}
echo"</select>
<br><input type='text' size='25' id='resets' name='resets' />
<br><input type='submit' maxlength='2' value='exchange' name='exchange'>
</form>
<br>Each one sold reset is equivalent to One 'GR' in Rankings !
<br>1 Reset = $grandresetcredits Credits!
";
}[/COLOR]
аз мога да ти кажа че нито 1 стотинка не дадена за тоя шоп шопа е правен от Bupyc и малка част от Mephisto за което Bupyc му е благодарен и им права евала и на 2-мата