Ir para conteúdo

[Encerrado] [Encerrado] [HELP] Alguem me ajuda nessa script


Posts Recomendados

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	end	

 

Editado por 28041
Link para o comentário
https://xtibia.com/forum/topic/245508-encerrado-encerrado-help-alguem-me-ajuda-nessa-script/
Compartilhar em outros sites

  • 5 months later...
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
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
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...