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)
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
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





info
Grupo: Visconde
Registrado: 16/08/13
Posts: 286
Reputação: +30
Gênero: Masculino
Estou com um problema no meu script de passar só com X storage
[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
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
[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)