@up
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] [Encerrado] [HELP] Alguem me ajuda nessa script
28
[Encerrado] [Encerrado] [HELP] Alguem me ajuda nessa script
Por 28041, 19 de jun. de 2017 em Tópicos Sem Resposta
4
726
20 de junho de 2017 às 12:51
5 meses depois...
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

29 de novembro de 2017 às 15:21
A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

29 de novembro de 2017 às 15:22
A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.



info
Grupo: Campones
Registrado: 10/06/17
Posts: 12
Reputação: 0
Gênero: Masculino
Bom alguem poderia me ajudar quando o player falar !bless, checkar se ele já tem se não tiver, adicionar isso a database:
function AddPlayerBlessing(cid, type)local MGB = mysqlQuery("SELECT `bless1`, `bless2`, `bless3`, `bless4`, `bless5` FROM `players` WHERE `name` = '" .. getPlayerName(cid) .. "';", "bless1, bless2, bless3, bless4, bless5")if type == 1 then if (MGB.bless1) == "0" then mysqlQuery("UPDATE `players` SET `bless1` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 2 then if (MGB.bless2) == "0" then mysqlQuery("UPDATE `players` SET `bless2` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 3 then if (MGB.bless3) == "0" then mysqlQuery("UPDATE `players` SET `bless3` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 4 then if (MGB.bless4) == "0" then mysqlQuery("UPDATE `players` SET `bless4` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 5 then if (MGB.bless5) == "0" then mysqlQuery("UPDATE `players` SET `bless5` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endEditado Junho 19 por 28041