AlphaMaster 7 Posted May 14, 2016 Ola pessoal desa vez é outro erro quando vou criar um personagem me da erro que o nome esta incorreto >> Share this post Link to post Share on other sites
0 Anderson Fabris 28 Posted May 16, 2016 Arrumou? Se não arrumou é bem Simples. Se não arrumou : Na tabela PLAYER, vai na opção de DESIGN dela, nas linhas, as opções que estão sem DEFAULT vocÊ bota o " 0 " sem aspas. Geralmente isso acontece quando você da TRUNCATE ou EMPTY nas tabelas, ai ela não aplica os default. Bom se ajudei, da um Like <3 " No caso do Seu Erro está na ABA FACEBOOK ", bota 0 lá Próprio erro já diz onde é: DirectQuery : mysql_query error: Field 'facebook' doesn't have a default value facebook - O Local doesn't have a default No Caso já diz " FALTA O DEFAULT " , bota 0 manooo! 1 AlphaMaster reacted to this Share this post Link to post Share on other sites
0 nagatto 2,130 Posted May 14, 2016 Que nome estás a pôr na personagem? Não podes adicionar caracteres especiais como por ex: . , [ ] ( ) e por aí adiante. Share this post Link to post Share on other sites
0 AlphaMaster 7 Posted May 15, 2016 o nome é Marcos ja tentei outros nome Share this post Link to post Share on other sites
0 hardzone 85 Posted May 15, 2016 vai a db e ve o sysrr e faz o mesmo no channel que estas a entrar tipo ch1 deves la ter erros pk ele nao consegues adicionar o boneco a db Share this post Link to post Share on other sites
0 AlphaMaster 7 Posted May 15, 2016 me da esse erro no sysser da db SYSERR: May 15 08:10:00 :: DirectQuery: MySQL connection was reconnected. querying locale set SYSERR: May 15 08:10:06 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Field 'facebook' doesn't have a default value query: INSERT INTO player (id, account_id, name, level, st, ht, dx, iq, job, voice, dir, x, y, z, hp, mp, random_hp, random_sp, stat_point, stamina, part_base, part_main, part_hair, part_acce, gold, playtime, skill_level, quickslot) VALUES(0, 4, 'Marcos', 1, 6, 4, 3, 3, 0, 0, 0, 459545, 954141, 0, 760, 260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ SYSERR: May 15 08:10:06 :: __QUERY_PLAYER_CREATE: QUERY_ERROR: UPDATE player_index SET pid1=0 WHERE id=4 Share this post Link to post Share on other sites
0 ItachiUchiha 51 Posted May 15, 2016 (edited) AlphaMaster, on 15 May 2016 - 16:11, said: me da esse erro no sysser da db Vais ter que apagar a Tabela do player e colocar ela denovo porque bugou isso faz backup da tabela e mete este codico :CREATE TABLE player_player SELECT * FROM player LIMIT 0; Edited May 15, 2016 by ItachiUchiha (see edit history) Share this post Link to post Share on other sites
0 Wolvarinhas 107 Posted May 15, 2016 Na tabela account deve ter ai alguma merdinha a dizer facebook.....add ai algum valor Como vez mysql_query error: Field 'facebook' doesn't have a default value isso significa que existe um campo "facebook" que preciso de ser preenchido porque nao tem um valor de default 2º Lugar o erro não e so disso Vai ao teu player_index e apaga tudo o que tem ai....... Então depois tenta criar personagem Porque ai e onde estão todos os ids das contas criadas anteriormente Share this post Link to post Share on other sites
0 MiguelSousa 55 Posted May 15, 2016 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for player -- ---------------------------- DROP TABLE IF EXISTS `player`; CREATE TABLE `player` ( `id` bigint(30) NOT NULL AUTO_INCREMENT, `account_id` bigint(30) NOT NULL DEFAULT '0', `name` varchar(24) NOT NULL DEFAULT 'NONAME', `job` tinyint(2) unsigned NOT NULL DEFAULT '0', `voice` tinyint(1) unsigned NOT NULL DEFAULT '0', `dir` tinyint(2) NOT NULL DEFAULT '0', `x` int(11) NOT NULL DEFAULT '0', `y` int(11) NOT NULL DEFAULT '0', `z` int(11) NOT NULL DEFAULT '0', `map_index` int(11) NOT NULL DEFAULT '0', `exit_x` int(11) NOT NULL DEFAULT '0', `exit_y` int(11) NOT NULL DEFAULT '0', `exit_map_index` int(11) NOT NULL DEFAULT '0', `hp` bigint(10) NOT NULL DEFAULT '0', `mp` bigint(10) NOT NULL DEFAULT '0', `stamina` bigint(10) NOT NULL DEFAULT '0', `random_hp` bigint(10) unsigned NOT NULL DEFAULT '0', `random_sp` bigint(10) unsigned NOT NULL DEFAULT '0', `playtime` bigint(50) NOT NULL DEFAULT '0', `level` bigint(3) unsigned NOT NULL DEFAULT '1', `level_step` tinyint(1) NOT NULL DEFAULT '0', `st` smallint(3) NOT NULL DEFAULT '0', `ht` smallint(3) NOT NULL DEFAULT '0', `dx` smallint(3) NOT NULL DEFAULT '0', `iq` smallint(3) NOT NULL DEFAULT '0', `exp` bigint(50) NOT NULL DEFAULT '0', `gold` bigint(255) DEFAULT NULL, `stat_point` smallint(3) NOT NULL DEFAULT '0', `skill_point` smallint(3) NOT NULL DEFAULT '0', `quickslot` tinyblob, `ip` varchar(15) DEFAULT '0.0.0.0', `part_main` bigint(10) unsigned NOT NULL DEFAULT '0', `part_base` bigint(10) NOT NULL DEFAULT '0', `part_hair` bigint(10) NOT NULL DEFAULT '0', `part_acce` bigint(4) unsigned NOT NULL DEFAULT '0', `skill_group` tinyint(4) NOT NULL DEFAULT '0', `skill_level` blob, `alignment` int(11) NOT NULL DEFAULT '0', `last_play` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `change_name` tinyint(1) NOT NULL DEFAULT '0', `mobile` varchar(24) DEFAULT NULL, `sub_skill_point` smallint(3) NOT NULL DEFAULT '0', `stat_reset_count` tinyint(4) NOT NULL DEFAULT '0', `horse_hp` smallint(4) NOT NULL DEFAULT '0', `horse_stamina` smallint(4) NOT NULL DEFAULT '0', `horse_level` tinyint(2) unsigned NOT NULL DEFAULT '0', `horse_hp_droptime` int(10) unsigned NOT NULL DEFAULT '0', `horse_riding` tinyint(1) NOT NULL DEFAULT '0', `horse_skill_point` smallint(3) NOT NULL DEFAULT '0', `ranking` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id_idx` (`account_id`), KEY `name_idx` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; Share this post Link to post Share on other sites
0 Wolvarinhas 107 Posted May 15, 2016 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for player -- ---------------------------- DROP TABLE IF EXISTS `player`; CREATE TABLE `player` ( `id` bigint(30) NOT NULL AUTO_INCREMENT, `account_id` bigint(30) NOT NULL DEFAULT '0', `name` varchar(24) NOT NULL DEFAULT 'NONAME', `job` tinyint(2) unsigned NOT NULL DEFAULT '0', `voice` tinyint(1) unsigned NOT NULL DEFAULT '0', `dir` tinyint(2) NOT NULL DEFAULT '0', `x` int(11) NOT NULL DEFAULT '0', `y` int(11) NOT NULL DEFAULT '0', `z` int(11) NOT NULL DEFAULT '0', `map_index` int(11) NOT NULL DEFAULT '0', `exit_x` int(11) NOT NULL DEFAULT '0', `exit_y` int(11) NOT NULL DEFAULT '0', `exit_map_index` int(11) NOT NULL DEFAULT '0', `hp` bigint(10) NOT NULL DEFAULT '0', `mp` bigint(10) NOT NULL DEFAULT '0', `stamina` bigint(10) NOT NULL DEFAULT '0', `random_hp` bigint(10) unsigned NOT NULL DEFAULT '0', `random_sp` bigint(10) unsigned NOT NULL DEFAULT '0', `playtime` bigint(50) NOT NULL DEFAULT '0', `level` bigint(3) unsigned NOT NULL DEFAULT '1', `level_step` tinyint(1) NOT NULL DEFAULT '0', `st` smallint(3) NOT NULL DEFAULT '0', `ht` smallint(3) NOT NULL DEFAULT '0', `dx` smallint(3) NOT NULL DEFAULT '0', `iq` smallint(3) NOT NULL DEFAULT '0', `exp` bigint(50) NOT NULL DEFAULT '0', `gold` bigint(255) DEFAULT NULL, `stat_point` smallint(3) NOT NULL DEFAULT '0', `skill_point` smallint(3) NOT NULL DEFAULT '0', `quickslot` tinyblob, `ip` varchar(15) DEFAULT '0.0.0.0', `part_main` bigint(10) unsigned NOT NULL DEFAULT '0', `part_base` bigint(10) NOT NULL DEFAULT '0', `part_hair` bigint(10) NOT NULL DEFAULT '0', `part_acce` bigint(4) unsigned NOT NULL DEFAULT '0', `skill_group` tinyint(4) NOT NULL DEFAULT '0', `skill_level` blob, `alignment` int(11) NOT NULL DEFAULT '0', `last_play` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `change_name` tinyint(1) NOT NULL DEFAULT '0', `mobile` varchar(24) DEFAULT NULL, `sub_skill_point` smallint(3) NOT NULL DEFAULT '0', `stat_reset_count` tinyint(4) NOT NULL DEFAULT '0', `horse_hp` smallint(4) NOT NULL DEFAULT '0', `horse_stamina` smallint(4) NOT NULL DEFAULT '0', `horse_level` tinyint(2) unsigned NOT NULL DEFAULT '0', `horse_hp_droptime` int(10) unsigned NOT NULL DEFAULT '0', `horse_riding` tinyint(1) NOT NULL DEFAULT '0', `horse_skill_point` smallint(3) NOT NULL DEFAULT '0', `ranking` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id_idx` (`account_id`), KEY `name_idx` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; Estrutura da tabela player? ele n precisa de criar a tabela outravez..... mas pode fazer Share this post Link to post Share on other sites
0 AlphaMaster 7 Posted May 15, 2016 Na tabela account deve ter ai alguma merdinha a dizer facebook..... add ai algum valor Como vez mysql_query error: Field 'facebook' doesn't have a default value isso significa que existe um campo "facebook" que preciso de ser preenchido porque nao tem um valor de default 2º Lugar o erro não e so disso Vai ao teu player_index e apaga tudo o que tem ai....... Então depois tenta criar personagem Porque ai e onde estão todos os ids das contas criadas anteriormente em account não tem tabela facebook só tem em player Share this post Link to post Share on other sites
0 hardzone 85 Posted May 15, 2016 vais a player botao do lado direto "Design Table" procuras por facebook e ali onde diz default metes 0 https://gyazo.com/19226196b7499b3ff108568b4d173f72 Share this post Link to post Share on other sites
0 Wolvarinhas 107 Posted May 15, 2016 em account não tem tabela facebook só tem em player Sim eu quis me referir a player.... Tu deves ter alguma função dentro do teu servidor que vai buscar esse campo se tu fizeres o que o hardzone disse não e obrigatorio colocares um valor ai.... Share this post Link to post Share on other sites
0 SethOzin 0 Posted September 22, 2022 ESTOU COM UM PROBLEMA PARECIDO, ALGUEM PODE ME AJUDAR ? Share this post Link to post Share on other sites
Ola pessoal desa vez é outro erro quando vou criar um personagem me da erro que o nome esta incorreto >>
Share this post
Link to post
Share on other sites