What's new

Acc maker problem z banem.

Status
Not open for further replies.

Propsiak

New User
Joined
Mar 25, 2010
Messages
5
Reaction score
0
Witam, mam problem z acc makerem. Gdy kto? dostanie bana na otsie w acc makerze gdy chcemy zobaczy? jego postac wy?wietla si? komunikat:
Code:
Fatal error: Call to undefined method OTS_Account::getBanTime() in C:\xampp\htdocs\characters.php on line 372
Prosz? o pomoc!;)
 

McFreeq

Advanced User
Joined
Nov 15, 2009
Messages
381
Reaction score
40
Odp: Acc maker problem z banem.

problem tkwi w linjce 372 to we? najwy?ej daj tutaj ten characters.php to mo?e co? zrobimy ;)
 

Propsiak

New User
Joined
Mar 25, 2010
Messages
5
Reaction score
0
Odp: Acc maker problem z banem.

cale sie nie zmiesci wiec wysle tylko ta linijke

Code:
                                       if($account->getBanTime() > 0)
 

Hadol

Senior User
Joined
May 8, 2008
Messages
998
Reaction score
99
Age
30
Odp: Acc maker problem z banem.

Najwidoczniej masz z?? wersj? acc makera pod tw?j silnik, pobierz wersj? pasuj?c? do twojego silnika i wszystko powinno dzia?a?.
 

Propsiak

New User
Joined
Mar 25, 2010
Messages
5
Reaction score
0
Odp: Acc maker problem z banem.

Wcze?niej wszystko by?o ok, nie by?o takiego b??du
 

Poufny

Senior User
Joined
Jul 31, 2009
Messages
662
Reaction score
46
Age
31
Odp: Acc maker problem z banem.

Spurboj zmienic,
($account->getBanTime() > 1)

Ewentualnie REINSTALKA ACC MAKERA.
To wiele nie kosztuje :) 10 minut?! :p

JESLI PIERWSZY SPOSOB NIE POMOZE, MUSISZ ODWOLAC SIE DO REINSTALKI ;(
 

Xart Irok

Senior User
Joined
Sep 7, 2008
Messages
2,925
Reaction score
419
Age
32
Odp: Acc maker problem z banem.

Podmie? linie od:
Code:
if($account->isBanned())
Do:
Code:
$main_content .= '</TD></TR></TABLE>';
Na to:
PHP:
					if($account->isBanned())
					{
						if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
						$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><font color=red>Banished:</font></TD>';
							$ban_reason = array("Offensive Name", "Invalid Name Format", "Unsuitable Name", "Name Inciting Rule Violation", "Offensive Statement", "Spamming", "Illegal Advertising", "Off-Topic Public Statement", "Non-English Public Statement", "Inciting Rule Violation", "Bug Abuse", "Game Weakness Abuse", "Using Unofficial Software to Play", "Hacking", "Multi-Clienting", "Account Trading or Sharing", "Threatening Gamemaster", "Pretending to Have Influence on Rule Enforcer", "False Report to Gamemaster", "Destructive Behaviour", "Excessive Unjustified Player Killing", "Invalid Payment", "Spoiling Auction");
							$players_banned = $SQL->query('SELECT `expires`, `added`, `reason` FROM `bans` WHERE `value` = '.$account.'  AND `active` = 1 GROUP BY `value` ORDER BY `added` DESC')->fetchAll();
							foreach($players_banned as $player) 
							{
								if ($player['expires'] == "-1") // If the banishment is permanent
									$expires = "Permament";
								else
									$expires = date("j F Y, g:i a", $player['expires']);
								$player_ban .= '<font color=red>At '.date("j F Y, g:i a", $player['added']).' CET because of '.$ban_reason[$player['reason']].'. Expires at '.$expires.' CET</font>';
							}
						$main_content .= '<td>'.$player_ban.'</td></tr>';
					}
					$main_content .= '</TABLE>';
Skrypt pisany przeze mnie.
 
Status
Not open for further replies.
Top