trample Posted January 28, 2018 at 07:52 PM Share Posted January 28, 2018 at 07:52 PM Boas algem sabe encontrar o erro ? estou a horas tentar concertar isso . quest ep_kuponu begin state start begin when 80014.use begin if pc . count_item ( 80014 ) < 1 then say_title ( "Controle de Bugs" ) say("") say_red( "O objeto não esta no inventario..." ) say("") return end say_title("Vale Cash (1.000 MD):") say("") say("Este item lhe acrescenta creditos de cash à sua") say("conta automaticamente. Deseja utilizar?") say("") local s = select("Sim","Não") if s == 1 then pc.remove_item("80014",1) mysql_query('UPDATE account.account SET coins = coins+1000 WHERE id = \\"'..pc.get_account_id()..'\\"') syschat("A quantia de 1.000 MD de Cash foi creditada em sua conta! Relogue para atualizar...") elseif s == 2 then end end when 80015.use begin if pc . count_item ( 80015 ) < 1 then say_title ( "Controle de Bugs" ) say("") say_red( "O objeto não esta no inventario..." ) say("") return end say_title("Vale Cash (5.000 MD):") say("") say("Este item lhe acrescenta creditos de cash à sua") say("conta automaticamente. Deseja utilizar?") say("") local s = select("Sim","Não") if s == 1 then pc.remove_item("80015",1) mysql_query('UPDATE account.account SET coins = coins+5000 WHERE id = \\"'..pc.get_account_id()..'\\"') syschat("A quantia de 5.000 MD de Cash foi creditada em sua conta! Relogue para atualizar...") elseif s == 2 then end end when 80016.use begin if pc . count_item ( 80016 ) < 1 then say_title ( "Controle de Bugs" ) say("") say_red( "O objeto não esta no inventario..." ) say("") return end say_title("Vale Cash (10.000 MD):") say("") say("Este item lhe acrescenta creditos de cash à sua") say("conta automaticamente. Deseja utilizar?") say("") local s = select("Sim","Não") if s == 1 then pc.remove_item("80016",1) mysql_query('UPDATE account.account SET coins = coins+10000 WHERE id = \\"'..pc.get_account_id()..'\\"') syschat("A quantia de 10.000 MD de Cash foi creditada em sua conta! Relogue para atualizar...") elseif s == 2 then end end when 80017.use begin if pc . count_item ( 80017 ) < 1 then say_title ( "Controle de Bugs" ) say("") say_red( "O objeto não esta no inventario..." ) say("") return end say_title("Vale Cash (500 MD):") say("") say("Este item lhe acrescenta creditos de cash à sua") say("conta automaticamente. Deseja utilizar?") say("") local s = select("Sim","Não") if s == 1 then pc.remove_item("80017",1) mysql_query('UPDATE account.account SET coins = coins+500 WHERE id = \\"'..pc.get_account_id()..'\\"') syschat("A quantia de 500 MD de Cash foi creditada em sua conta! Relogue para atualizar...") elseif s == 2 then end end end end Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted January 28, 2018 at 08:32 PM Share Posted January 28, 2018 at 08:32 PM Nunca uses queries por quest: Link to comment Share on other sites More sharing options...
trample Posted January 31, 2018 at 11:23 PM Author Share Posted January 31, 2018 at 11:23 PM Obrigado, por isso te amo tanto Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now