goesraphael1 2 Postado Outubro 25, 2012 Share Postado Outubro 25, 2012 Galera, seguinte, Se eu crio um char com o nome por exemplo assim: " Druid'Show " com este apóstrofo no meio do nome ' , O char não loga no server e no distro aparece este erro: [25/10/2012 13:59:17] Druid'druida has logged in. [25/10/2012 13:59:17] mysql_real_query(): SELECT `points` FROM `players` WHERE `name` = 'Druid'druida'; - MYSQL ERROR: 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 'druida'' at line 1 (1064) [25/10/2012 13:59:17] [Error - CreatureScript Interface] [25/10/2012 13:59:17] data/creaturescripts/scripts/Skull.lua:onLogin [25/10/2012 13:59:17] Description: [25/10/2012 13:59:17] data/lib/004-database.lua:60: [Result:getDataInt] Result not set! [25/10/2012 13:59:17] stack traceback: [25/10/2012 13:59:17] [C]: in function 'error' [25/10/2012 13:59:17] data/lib/004-database.lua:60: in function 'getDataInt' [25/10/2012 13:59:17] data/lib/049-war.lua:15: in function 'getPlayerPoints' [25/10/2012 13:59:17] data/creaturescripts/scripts/Skull.lua:2: in function <data/creaturescripts/scripts/Skull.lua:1> [25/10/2012 13:59:17] Druid'druida has logged out. [25/10/2012 13:59:18] [Error - CreatureScript Interface] [25/10/2012 13:59:18] In a timer event called from: [25/10/2012 13:59:18] data/creaturescripts/scripts/anti2.lua:onLogin [25/10/2012 13:59:18] Description: [25/10/2012 13:59:18] (internalGetPlayerInfo) Player not found when requesting player info #28 Alguém sabe arrumar isso para os players com esses nomes conseguirem logar? Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/ Compartilhar em outros sites More sharing options...
Yan Oliveira 215 Postado Outubro 25, 2012 Share Postado Outubro 25, 2012 Tente dar espaço no 'Show assim : Druid 'Show. Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1371851 Compartilhar em outros sites More sharing options...
goesraphael1 2 Postado Outubro 25, 2012 Autor Share Postado Outubro 25, 2012 cara, o problema não é eu criar um char com espaço, preciso que funcione desse jeito... pois os players que entrarem no site para criar conta, se criarem com apóstrofo, vão tentar entrar, não vai dar e eles vão desistir de jogar.. Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1371865 Compartilhar em outros sites More sharing options...
Yan Oliveira 215 Postado Outubro 25, 2012 Share Postado Outubro 25, 2012 Poste seu login.lua. Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1371867 Compartilhar em outros sites More sharing options...
goesraphael1 2 Postado Outubro 25, 2012 Autor Share Postado Outubro 25, 2012 (editado) dofile("war.lua") local texts = { "Bem vindo ao "..getConfigValue("ownerName").."'s, segue a lista de todos comandos:", "!online -> Ver players online", "!uptime -> Ver UPTime do server", "!frags -> Veja seus Frags", "!t -> Digite !t e um numero EX: !t 1", "!rank -> Ver os TOP Fraggers ", "!setoutfit -> Salvar sua OUTFIT", "!getoutfit -> Carregar sua OUTFIT", "!go -> Trocar para a mesma OUTFIT que o lider da party" } local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end for t = 1, #texts do doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, texts[t]) end registerCreatureEvent(cid, "startskills") setPlayerPromotionLevel(cid, 1) registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Kill") registerCreatureEvent(cid, "First Items") registerCreatureEvent(cid, "Skull") registerCreatureEvent(cid, 'FLook') registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") return true end Editado Outubro 25, 2012 por RaphaelGoes Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1371981 Compartilhar em outros sites More sharing options...
Yan Oliveira 215 Postado Outubro 25, 2012 Share Postado Outubro 25, 2012 Este diretorio está certo:? dofile("war.lua") Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1371999 Compartilhar em outros sites More sharing options...
goesraphael1 2 Postado Outubro 25, 2012 Autor Share Postado Outubro 25, 2012 Sim, ele fica na pasta data. Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1372217 Compartilhar em outros sites More sharing options...
Yan Oliveira 215 Postado Outubro 26, 2012 Share Postado Outubro 26, 2012 Sua base é Sqlite ou Mysql? Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1373119 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 20, 2018 Share Postado Abril 20, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/197401-encerrado-erro-ao-logar-e-no-distro/#findComment-1732370 Compartilhar em outros sites More sharing options...
Posts Recomendados