• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

0,0,0 pos

Status
Not open for further replies.

Sherlok

Active Member
Joined
Aug 29, 2008
Messages
2,116
Reaction score
44
Location
Poland, Wrocław.
Hi,
Mam taki problem, iż zawsze po deadzie mój spawn zmienia się na 0,0,0, a nie na 1k,1k,7 tak jak bym chciał.. :confused:

- miasto w map editorze ustawiłem,
- w acc makerze mam ustawione tak (config/config.php)
PHP:
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(1);
$config['site']['newchar_towns'][1] = array(1);
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(1);

Co może być przyczyną, że zawsze zmienia mi te pozycje? :(
 
Char sample
Acc manager.

Sample mają ustawione town_id = 1
Przy tworzeniu nowego chara jego town_id = 0 :(

Wez sproboj to hard-codowac w aac makerze zamiast zmieniac w configu.

PL?

Przy okazji, żeby nie zakładać nowego tematu - przy zakładaniu nowej postaci (po wpisaniu nicku, wybraniu płci oraz profesji) wyskakuje biała strona, a na niej:

Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your
SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1' in C:\xampp\htdocs\sherlok\accountmanagement.php:813 Stack trace: #0 C:\xampp\htdocs\sherlok\accountmanagement.php(813):
PDO->query('INSERT INTO `pl...') #1 C:\xampp\htdocs\sherlok\index.php(148): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\sherlok\accountmanagement.php on line 813

Sprawdzałem w bazie i te chary się tworzą, nie wiem tylko czemu jest ten błąd ;(
 
Sample mają ustawione town_id = 1
Przy tworzeniu nowego chara jego town_id = 0 :(



PL?

Przy okazji, żeby nie zakładać nowego tematu - przy zakładaniu nowej postaci (po wpisaniu nicku, wybraniu płci oraz profesji) wyskakuje biała strona, a na niej:

Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your
SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1' in C:\xampp\htdocs\sherlok\accountmanagement.php:813 Stack trace: #0 C:\xampp\htdocs\sherlok\accountmanagement.php(813):
PDO->query('INSERT INTO `pl...') #1 C:\xampp\htdocs\sherlok\index.php(148): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\sherlok\accountmanagement.php on line 813

Znajdz kod odpowiadajacy za ustawianie miasta i w funkcji zamiast argumentu z configu podaj po prostu liczbe.

Co do exception, masz blad w zapytaniu SQL, nie widzimy zapytania, nie pomozemy.

http://otland.net/f118/exception-debugger-good-gesior-aac-52954/
Pomoze ci w odnajdowaniu bledow.
 
Problem z tym, że dawało złe town_id leżał tutaj:

PHP:
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(1);
$config['site']['newchar_towns'][1] = array(1);
// sample, if all players should spawn in one city (city with ID 4):          
$config['site']['newchar_towns'] = array(1);

a dokładniej.. do $config['site']['newchar_towns'] = array(1); trzeba było dodać [0]:
PHP:
$config['site']['newchar_towns'][0] = array(1);

Thx for Nemaneth :)
 
BUMP! Ważne :|

Przy zakładaniu nowej postaci (po wpisaniu nicku, wybraniu płci oraz profesji) i zaakceptowaniu, wyskakuje biała strona, a na niej:
Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1' in C:\xampp\htdocs\rageots\accountmanagement.php:813 Stack trace: #0 C:\xampp\htdocs\rageots\accountmanagement.php(813): PDO->query('INSERT INTO `pl...') #1 C:\xampp\htdocs\rageots\index.php(148): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\rageots\accountmanagement.php on line 813

accountmanagement.php


Ma ktoś jakiś pomysł jak to naprawić?
 
PHP:
						$loaded_items_to_copy = $SQL->query("SELECT * FROM player_items WHERE player_id = ".$char_to_copy->getId()."");

Jak to fixnąć?
 
Wyglada dobrze, ale to chyba tutaj jest jakis blad:

$SQL->query("INSERT INTO `player_items` (`player_id` ,`pid` ,`sid` ,`itemtype`, `count`, `attributes`) VALUES ('".$player->getId()."', '".$save_item['pid']."', '".$save_item['sid']."', '".$save_item['itemtype']."', '".$save_item['count']."', '".$save_item['attributes']."');");

Wez to skopiuj i wklej u siebie i zobacz. :]
 
Status
Not open for further replies.
Back
Top