Ir para conteúdo
  • 0

Ajuda a corrigir problema desse script


Duhisback

Pergunta

Estou com um problema no meu script de passar só com X storage

Spoiler

[14/08/2019 22:49:43] [Error - MoveEvents Interface] 
[14/08/2019 22:49:43] datapack/movements/scripts/inicial/piso.lua:onStepIn
[14/08/2019 22:49:43] Description: 
[14/08/2019 22:49:43] (luaDoPlayerSendTextMessage) Player not found

 

Esse problema ocorre quando o pokemon tenta passar pelo piso, se ficar tentando passar muitas vezes o servidor cai

 

Script

Spoiler

local sto = 453454 --muda aki a sto?
function onStepIn(cid, item, position, fromPosition)
  if getPlayerStorageValue(cid, sto) < 1 then
  doTeleportThing(cid, fromPosition, true)
  doPlayerSendTextMessage(cid, 27, "Pegue seu Pokemon Primeiro.")
  return false
  end
return true
end

 

Eu quero que o pokemon passe normalmente, que só o player precise da storage

 

 

e se poder me ajudar a adicionar no banco de dados esses problemas eu agradeço

Spoiler

[14/08/2019 22:47:57] mysql_real_query(): SELECT `player_id` FROM `marriage_system` WHERE `player_id` = '40'; - MYSQL ERROR: Table 'pokeedu.marriage_system' doesn't exist (1146)
[14/08/2019 22:47:57] mysql_real_query(): SELECT `partner` FROM `marriage_system` WHERE `partner` = '40'; - MYSQL ERROR: Table 'pokeedu.marriage_system' doesn't exist (1146)

 

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0
9 minutos atrás, Duhisback disse:

[14/08/2019 22:47:57] mysql_real_query(): SELECT `player_id` FROM `marriage_system` WHERE `player_id` = '40'; - MYSQL ERROR: Table 'pokeedu.marriage_system' doesn't exist (1146)
[14/08/2019 22:47:57] mysql_real_query(): SELECT `partner` FROM `marriage_system` WHERE `partner` = '40'; - MYSQL ERROR: Table 'pokeedu.marriage_system' doesn't exist (1146)

Spoiler

CREATE TABLE marriage_system (
			id					  INTEGER NOT NULL,
			player_id   INTEGER NOT NULL,
			partner	  VARCHAR( 255 )  NOT NULL,
			marriage_date INTEGER NOT NULL,
			PRIMARY KEY ( id )
);

 

 

Sobre o Script 

 

Spoiler

local sto = 453454 --muda aki a sto?
function onStepIn(cid, item, position, fromPosition)
if isMonster(cid) then
return true
end
  if getPlayerStorageValue(cid, sto) < 1 then
  doTeleportThing(cid, fromPosition, true)
  doPlayerSendTextMessage(cid, 27, "Pegue seu Pokemon Primeiro.")
  return false
  end
return true
end

 

Editado por Marshmello
Link para o comentário
Compartilhar em outros sites

  • 0
8 minutos atrás, Marshmello disse:
  Mostrar conteúdo oculto


CREATE TABLE marriage_system (
			id					  INTEGER NOT NULL,
			player_id   INTEGER NOT NULL,
			partner	  VARCHAR( 255 )  NOT NULL,
			marriage_date INTEGER NOT NULL,
			PRIMARY KEY ( id )
);

 

 

Sobre o Script 

 

   Mostrar conteúdo oculto

local sto = 453454 --muda aki a sto?
function onStepIn(cid, item, position, fromPosition)
if isMonster(cid) then
return true
end
  if getPlayerStorageValue(cid, sto) < 1 then
  doTeleportThing(cid, fromPosition, true)
  doPlayerSendTextMessage(cid, 27, "Pegue seu Pokemon Primeiro.")
  return false
  end
return true
end

  

[14/08/2019 23:12:21] [Error - LuaScriptInterface::loadFile] datapack/movements/scripts/inicial/piso.lua:2: '(' expected near 'ï'
[14/08/2019 23:12:21] [Warning - Event::loadScript] Cannot load script (datapack/movements/scripts/inicial/piso.lua)
[14/08/2019 23:12:21] datapack/movements/scripts/inicial/piso.lua:2: '(' expected near 'ï'

Link para o comentário
Compartilhar em outros sites

  • 0
1 minuto atrás, Duhisback disse:

[14/08/2019 23:12:21] [Error - LuaScriptInterface::loadFile] datapack/movements/scripts/inicial/piso.lua:2: '(' expected near 'ï'
[14/08/2019 23:12:21] [Warning - Event::loadScript] Cannot load script (datapack/movements/scripts/inicial/piso.lua)
[14/08/2019 23:12:21] datapack/movements/scripts/inicial/piso.lua:2: '(' expected near 'ï'

Isso e erro de fomatação

segue esse passo

 image.png.70dfaa051d5988c24304842044c0fc47.png

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...