Postado Novembro 5, 2014 10 anos function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end Fiz uma outra melhoria..
Postado Novembro 5, 2014 10 anos @caiohp, bem pensado, reputado! Alguém pode testar? function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end Edit: Alguem testou?
Postado Dezembro 27, 2014 10 anos @caiohp, bem pensado, reputado! Alguém pode testar? function onLogin(cid) local bless = {" First Bless,", " Second Bless,", " Third Bless,", " Fourth Bless,", " Fifth Bless."} local check = "Received blessings:" for i = 1, #bless do check = getPlayerBlessing(cid, i) and check .. bless[i] or check end if check:len() > 20 then doPlayerSendTextMessage(cid, 20, check) else doPlayerSendTextMessage(cid, 20, "No blessings received.") end return true end Edit: Alguem testou? Eu testei, funciona @edit, tem só 1 problema, aparece pro account manager Editado Dezembro 28, 2014 10 anos por jNo (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.