Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Symbol ")"


  • Please log in to reply
18 replies to this topic

#1
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey
OnTick(function(myHero)
local target = GetCurrentTarget()
local CutBlade = GetItemSlot(myHero,3144)
local bork = GetItemSlot(myHero,3153)
local ghost = GetItemSlot(myHero,3142)
if mainMenu.Combo.Combo1:Value() then
if CutBlade >= 1 and ValidTarget(target,550+50) and mainMenu.Items.useCut:Value() then
if CanUseSpell(myHero,GetItemSlot(myHero,3144)) == READY then
CastTargetSpell(target, GetItemSlot(myHero,3144))
end 
elseif bork >= 1 and ValidTarget(target,550+50) and mainMenu.Items.useBork:Value() then 
if CanUseSpell(myHero,GetItemSlot(myHero,3153)) == READY then
CastTargetSpell(target,GetItemSlot(myHero,3153))
end
end


if ghost >= 1 and ValidTarget(target,GetRange(myHero)+50) and mainMenu.Items.useGhost:Value() then
if CanUseSpell(myHero,GetItemSlot(myHero,3142)) == READY then
CastSpell(GetItemSlot(myHero,3142))
end
end
if CanUseSpell(myHero,_Q) == READY and ValidTarget(target, 550) then
CastTargetSpell(target, _Q)
end
if CanUseSpell(myHero,_W) == READY and ValidTarget(target, 3000) then
CastTargetSpell(target, _W)
end
end
)

What is wrong?


  • 0

#2
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

plz format your code...


  • 0

#3
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

plz format your code...

I don't understand. I'm new


  • 0

#4
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
At the end u need end) not just ")"
  • 0

#5
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

At the end u need end) not just ")"

I tried it but again I try


  • 0

#6
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

At the end u need end) not just ")"

unexpected symbol near ")" get error :(


  • 0

#7
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

plz format your code...

 

At the end u need end) not just ")"

Will you help ?


  • 0

#8
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

I don't understand. I'm new

google "format code"


  • 0

#9
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

google "format code"

I still do not understand. I've been using the Sublime Text 3

What happens help you 


  • 0

#10
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
Look at those two end lines, it looks like
end
)
Delete that two lines and put one like this
end)
  • 0

#11
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
And u have some syntax errors, like that elseif
  • 0

#12
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey
local myHero = GetMyHero()
if GetObjectName(myHero) ~= "Teemo" then return end
local target = GetCurrentTarget()
require('Inspired')


local mainMenu = Menu("OK Teemo v1.0", "Teemo")
mainMenu:Menu("Combo", "Combo")
mainMenu.Combo:Boolean("useQ", "Use Q", true)
mainMenu.Combo:Boolean("useW", "Use W", true)
mainMenu.Combo:Boolean("useR", "Use R", false)
mainMenu.Combo:Key("Combo1", "Combo", string.byte(" "))
mainMenu:Menu("Credits","Credits")
mainMenu.Credits:Info("info", "Author: OnlyKatarina")
mainMenu.Credits:Info("info2", "Have Fun Teeemoooo")


OnTick(function(myHero)
if mainMenu.Combo.Combo1:Value() then
if CanUseSpell(myHero,_Q) == READY and ValidTarget(target, 680) then
CastTargetSpell(target, _Q)
resetAA()
elseif CanUseSpell(myHero,_W) == READY then
CastSpell(_W)
end
if GetLevel(_R) == 1 then
if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 400) then
CastTargetSpell(target, _R)
end
end
if GetLevel(_R) == 2 then
if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 650) then
CastTargetSpell(target, _R)
end
end
if GetLevel(_R) == 3 then
if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 900) then
CastTargetSpell(target, _R)
end
end
end)
PrintChat("OK Teemo v1.0.0 Loaded.")
PrintChat("by OnlyKatarina")
AddGapcloseEvent(_Q, 680, true, mainMenu)

In this one, I get the same error


  • 0

#13
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
Add one more end before end)
  • 0

#14
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

After if/for push your code to the right using space/tab.look at my scripts.


  • 0

#15
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

Add one more end before end)

TWO ) ?


  • 0

#16
Hanndel

Hanndel

    datebest.net - visit website and win smartphone!

  • Contributor
  • 604 posts
  • Locationhttps://t.me/pump_upp
I cant edit ur code since my phone.
Before end) add a simple end
  • 0

#17
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

I cant edit ur code since my phone.
Before end) add a simple end

two end ? I'm sorry to bother


  • 0

#18
SiyahParke

SiyahParke

    Advanced Member

  • Banned
  • PipPipPip
  • 148 posts
  • LocationTurkey

ohh thanks I solved


  • 0

#19
Icesythe7

Icesythe7

    Forum Manager

  • Contributor
  • 181 posts

not to resurrect the dead but you should format your code like this

OnTick(function(myHero)
	if mainMenu.Combo.Combo1:Value() then
		if CanUseSpell(myHero,_Q) == READY and ValidTarget(target, 680) then
			CastTargetSpell(target, _Q)
			resetAA()
		elseif CanUseSpell(myHero,_W) == READY then
			CastSpell(_W)
		end
		if GetLevel(_R) == 1 then
			if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 400) then
				CastTargetSpell(target, _R)
			end
		end
		if GetLevel(_R) == 2 then
			if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 650) then
				CastTargetSpell(target, _R)
			end
		end
		if GetLevel(_R) == 3 then
			if CanUseSpell(myHero, _R) == READY and ValidTarget(target, 900) then
				CastTargetSpell(target, _R)
			end
		end
	end
end)
PrintChat("OK Teemo v1.0.0 Loaded.")
PrintChat("by OnlyKatarina")
AddGapcloseEvent(_Q, 680, true, mainMenu)

  • 1




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users